Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,