Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function({
audioConfig = AudioConfig.fromDefaultMicrophoneInput(),
audioContext,
enableTelemetry,
ponyfill = {
AudioContext: window.AudioContext || window.webkitAudioContext
},
recognizer,
textNormalization
}) {
if (!ponyfill.AudioContext) {
console.warn(
'botframework-directlinespeech-sdk: This browser does not support Web Audio API. Speech support is disabled.'
);
return () => ({});
}