Skip to content

Commit

Permalink
add audioConfig prop to Speech SDK Ponyfill (#2491)
Browse files Browse the repository at this point in the history
* add audioConfig prop to Speech SDK Ponyfill

* Update CHANGELOG.md

* Update CHANGELOG.md
  • Loading branch information
corinagum authored and compulim committed Oct 24, 2019
1 parent fab7cd8 commit c6fbe45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import createPonyfill from 'web-speech-cognitive-services/lib/SpeechServices';

export default function createCognitiveServicesSpeechServicesPonyfillFactory({
audioConfig,
authorizationToken,
enableTelemetry,
region,
Expand All @@ -16,6 +17,7 @@ export default function createCognitiveServicesSpeechServicesPonyfillFactory({

return ({ referenceGrammarID }) => {
const ponyfill = createPonyfill({
audioConfig,
authorizationToken,
enableTelemetry,
referenceGrammars: [`luis/${referenceGrammarID}-PRODUCTION`],
Expand Down

0 comments on commit c6fbe45

Please sign in to comment.