How to use the web-speech-cognitive-services/lib/BingSpeech.fetchAuthorizationToken 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 compulim / web-speech-cognitive-services / packages / playground / src / data / sagas / setPonyfill.js View on Github external
authorizationToken: onDemandAuthorizationToken ? () => {
            console.log('On-demand fetching Bing Speech authorization token');

            try {
              return fetchBingSpeechAuthorizationToken(bingSpeechSubscriptionKey);
            } catch (err) {
              console.error('Failed to fetch Bing Speech authorization token', err);
            }
          } : null,
          subscriptionKey: onDemandAuthorizationToken ? null : bingSpeechSubscriptionKey

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