Skip to content

Speak emotion with highest confidence (instead of first one in result)#1

Open
gabehollombe-aws wants to merge 1 commit into
adhorn:masterfrom
gabehollombe-aws:master
Open

Speak emotion with highest confidence (instead of first one in result)#1
gabehollombe-aws wants to merge 1 commit into
adhorn:masterfrom
gabehollombe-aws:master

Conversation

@gabehollombe-aws
Copy link
Copy Markdown

I noticed that when picking which detected emotion to voice, the original code just uses the first one in the Rekognition response list. However, this response from Rekognition is not necessarily ordered, so it often results in a sub-optimal voicing.

This change sorts the emotions and then picks the highest confidence emotion to voice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants