adaptive-speech-recognizer
Version:
Adaptive dictation-mode speech recognizer ponyfill compatible with WebChat that gives the user time to think and stutter/stammer.
18 lines (14 loc) • 489 B
JavaScript
/**
* Export `SpeechSDK` globals.
* @see https://www.npmjs.com/package/microsoft-cognitiveservices-speech-sdk
*/
// import 'ms-cognitive-speech-sdk'
console.assert(window.SpeechSDK, '"SpeechSDK" global is missing!');
const {
AudioConfig, MicAudioSource,
SpeechConfig, SpeechRecognizer, ResultReason, CancellationReason, OutputFormat
} = window.SpeechSDK;
export {
AudioConfig, MicAudioSource,
SpeechConfig, SpeechRecognizer, ResultReason, CancellationReason, OutputFormat
};