-
Notifications
You must be signed in to change notification settings - Fork 1k
Word Probability #236
Copy link
Copy link
Open
Description
Current Behavior
const didDetectSpeech = (possiblePhrases) => {
console.log(possiblePhrases);
};
annyang.addCallback('result', didDetectSpeech);
annyang.start({
continuous: false,
});
// Output: ['cat', 'mat', 'hat']Possible Solution
Output changed to:
[
{
value: 'cat',
probability: '0.9'
},
{
value: 'mat',
probability: '0.8'
},
{
value: 'hat',
probability: '0.7'
},
]
Questions
- Does the speech recognition engine return a probability for a given word?
- Is there a way to limit the number of possible words handed back? E.g; top 5.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels