Socket
Socket
Sign inDemoInstall

web-speech-cognitive-services

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-speech-cognitive-services

[![npm version](https://badge.fury.io/js/we-bspeech-cognitive-services.svg)](https://badge.fury.io/js/we-bspeech-cognitive-services) [![Build Status](https://travis-ci.org/compulim/we-bspeech-cognitive-services.svg?branch=master)](https://travis-ci.org/co


Version published
Weekly downloads
8.3K
decreased by-1.49%
Maintainers
1
Weekly downloads
 
Created
Source

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
  • Not authorized to use microphone
    1. RecognitionTriggeredEvent
    2. RecognitionEndedEvent(Result.RecognitionStatus = 'AudioSourceError')

Contributions

Like us? Star us.

Want to make it better? File us an issue.

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

FAQs

Package last updated on 28 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc