How to use the web-speech-cognitive-services/lib/BingSpeech 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 / createCognitiveServicesBingSpeechPonyfillFactory.js View on Github external
export default async function createCognitiveServicesBingSpeechPonyfillFactory({
  authorizationToken,
  subscriptionKey
}) {
  const ponyfill = await createPonyfill({ authorizationToken, subscriptionKey });
  const { SpeechGrammarList, speechSynthesis, SpeechSynthesisUtterance } = ponyfill;

  return ({ referenceGrammarID }) => ({
    SpeechGrammarList,
    SpeechRecognition: injectReferenceGrammarID(ponyfill, referenceGrammarID),
    speechSynthesis,
    SpeechSynthesisUtterance
  });
}

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