Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

  • 0.0.1-master.376d53e
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.1K
decreased by-8.41%
Maintainers
1
Weekly downloads
 
Created
Source

web-speech-cognitive-services

npm version Build Status

Polyfill Web Speech API with Cognitive Services.

Test matrix

Latest as of 2018-06-28.

PlatformOSBrowserCognitive Services (WebRTC)Web Speech API
PCWindows 10 (1803)Chrome 67.0.3396.99YesYes
PCWindows 10 (1803)Edge 42.17134.1.0YesNo, SpeechRecognition not implemented
PCWindows 10 (1803)Firefox 61.0YesNo, SpeechRecognition not implemented
MacBook PromacOS High Sierra 10.13.1Chrome 67.0.3396.99YesYes
MacBook PromacOS High Sierra 10.13.1Safari 11.0.1YesNo, SpeechRecognition not implemented
Apple iPhone XiOS 11.4Chrome 67.0.3396.87No, AudioSourceErrorNo, SpeechRecognition not implemented
Apple iPhone XiOS 11.4Edge 42.2.2.0No, AudioSourceErrorNo, SpeechRecognition not implemented
Apple iPhone XiOS 11.4SafariYesNo, SpeechRecognition not implemented
Apple iPod (6th gen)iOS 11.4Chrome 67.0.3396.87No, AudioSourceErrorNo, SpeechRecognition not implemented
Apple iPod (6th gen)iOS 11.4Edge 42.2.2.0No, AudioSourceErrorNo, SpeechRecognition not implemented
Apple iPod (6th gen)iOS 11.4SafariNo, AudioSourceErrorNo, SpeechRecognition not implemented
Google Pixel 2Android 8.1.0Chrome 67.0.3396.87YesYes
Google Pixel 2Android 8.1.0Edge 42.0.0.2057YesYes
Google Pixel 2Android 8.1.0Firefox 60.1.0YesYes
Microsoft Lumia 950Windows 10 (1709)Edge 40.15254.489.0No, AudioSourceErrorNo, SpeechRecognition not implemented

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