7.1.3 • Published 1 year ago

web-speech-cognitive-services v7.1.3

Weekly downloads
6,970
License
MIT
Repository
github
Last release
1 year ago

web-speech-cognitive-services

npm version Build Status

Polyfill Web Speech API with Cognitive Services.

Event lifecycle mapping from Cognitive Services

#WebSpeechCognitive ServicesNotes
1startRecognitionTriggeredEvent
2audiostartListeningStartedEvent
3ConnectingToServiceEvent
4soundstart, speechstartRecognitionStartedEvent
5onresult(isFinal = false)SpeechHypothesisEvent
6speechend, soundend, audioendSpeechEndDetectedEventspeechend and soundend only fire if either speechstart and soundstart was fired
7onresult(isFinal = true), onerrorSpeechSimplePhraseEvent
8endRecognitionEndedEvent

Scenarios

  • Happy path
    1. RecognitionTriggeredEvent
    2. ListeningStartedEvent
    3. ConnectingToServiceEvent
    4. RecognitionStartedEvent
    5. SpeechHypothesisEvent (could be more than one)
    6. SpeechEndDetectedEvent
    7. SpeechSimplePhraseEvent
    8. RecognitionEndedEvent
  • Network issues
    1. RecognitionTriggeredEvent
    2. ListeningStartedEvent
    3. ConnectingToServiceEvent
    4. SpeechSimplePhraseEvent
    5. RecognitionEndedEvent
  • Audio muted or volume too low
    1. RecognitionTriggeredEvent
    2. ListeningStartedEvent
    3. ConnectingToServiceEvent
    4. RecognitionStartedEvent
    5. SpeechEndDetectedEvent
    6. SpeechSimplePhraseEvent(Result.RecognitionStatus = 'InitialSilenceTimeout')
    7. RecognitionEndedEvent
  • Failed to recognize speech (a.k.a. no match)
    1. RecognitionTriggeredEvent
    2. ListeningStartedEvent
    3. ConnectingToServiceEvent
    4. RecognitionStartedEvent
    5. SpeechHypothesisEvent (could be more than one)
    6. SpeechEndDetectedEvent
    7. SpeechSimplePhraseEvent(Result.RecognitionStatus = 'NoMatch')
    8. RecognitionEndedEvent
  • User abort
    • Essentially muted the speech, that could result in success, silent, or no match

Contributions

Like us? Star us.

Want to make it better? File us an issue.

Don't like something you see? Submit a pull request.

7.1.3

1 year ago

7.1.2

2 years ago

7.1.1

3 years ago

7.1.0

3 years ago

7.0.1

4 years ago

7.0.0

4 years ago

6.3.0

4 years ago

6.2.0

4 years ago

6.1.0

4 years ago

6.0.0

4 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.0.0

5 years ago

3.0.0

5 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago