UNPKG

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 (13 loc) 461 B
// @ts-check /** @typeof {import('../../types.d').ponyfillFunction} */ import { createAdaptiveRecognizerPonyfill } from './../../index.js'; /** @type {import('../../types.js').Options} */ const options = { credentials: { subscriptionKey: 'abc123' }, initialSilenceTimeoutMs: 3000 }; /** @type {import('../../types.d').ReturnType} */ const RESULT = createAdaptiveRecognizerPonyfill(options); const recog = new RESULT.SpeechRecognition();