Skip to content

Word Probability #236

@revett

Description

@revett

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions