How to use the web-speech-cognitive-services/lib/SpeechServices function in web-speech-cognitive-services

To help you get started, we’ve selected a few web-speech-cognitive-services examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / BotFramework-WebChat / packages / bundle / src / createCognitiveServicesSpeechServicesPonyfillFactory.js View on Github external
return ({ referenceGrammarID }) => {
    const ponyfill = createPonyfill({
      audioConfig,
      authorizationToken,
      enableTelemetry,
      referenceGrammars: [`luis/${referenceGrammarID}-PRODUCTION`],
      region,
      speechRecognitionEndpointId,
      speechSynthesisDeploymentId,
      speechSynthesisOutputFormat,
      subscriptionKey,
      textNormalization
    });

    const { SpeechGrammarList, SpeechRecognition, speechSynthesis, SpeechSynthesisUtterance } = ponyfill;

    return {
      SpeechGrammarList,

web-speech-cognitive-services

Polyfill Web Speech API with Cognitive Services Speech-to-Text service

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis