diff --git a/CHANGELOG.md b/CHANGELOG.md index bcbea7c4c4..4caa160b84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -105,6 +105,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fix [#2461](https://github.com/Microsoft/BotFramework-WebChat/issues/2461), added `isomorphic-react` and `isomorphic-react-dom` packages, by [@compulim](https://github.com/compulim) and [@corinagum](https://github.com/corinagum), in PR [#2478](https://github.com/microsoft/BotFramework-WebChat/pull/2478) and PR [#2486](https://github.com/microsoft/BotFramework-WebChat/pull/2486) - Added missing Norwegian (nb-NO) translations, by [@taarskog](https://github.com/taarskog) - Added missing Italian (it-IT) translations, by [@AntoT84](https://github.com/AntoT84) +- Fixed [#2481](https://github.com/microsoft/BotFramework-WebChat/issues/2481). Support alternative audio input source by adding `audioConfig` prop to `createCognitiveServicesSpeechServicesPonyfillFactory`, by [@corinagum](https://github.com/corinagum), in PR [#2491](https://github.com/microsoft/BotFramework-WebChat/pull/2491) ### Samples diff --git a/packages/bundle/src/createCognitiveServicesSpeechServicesPonyfillFactory.js b/packages/bundle/src/createCognitiveServicesSpeechServicesPonyfillFactory.js index 29d54de921..3820d3343e 100644 --- a/packages/bundle/src/createCognitiveServicesSpeechServicesPonyfillFactory.js +++ b/packages/bundle/src/createCognitiveServicesSpeechServicesPonyfillFactory.js @@ -1,6 +1,7 @@ import createPonyfill from 'web-speech-cognitive-services/lib/SpeechServices'; export default function createCognitiveServicesSpeechServicesPonyfillFactory({ + audioConfig, authorizationToken, enableTelemetry, region, @@ -16,6 +17,7 @@ export default function createCognitiveServicesSpeechServicesPonyfillFactory({ return ({ referenceGrammarID }) => { const ponyfill = createPonyfill({ + audioConfig, authorizationToken, enableTelemetry, referenceGrammars: [`luis/${referenceGrammarID}-PRODUCTION`],