Skip to content

Polyfill using webkitAudioContext#3576

Merged
compulim merged 6 commits intomicrosoft:masterfrom
compulim:fix-3574
Nov 3, 2020
Merged

Polyfill using webkitAudioContext#3576
compulim merged 6 commits intomicrosoft:masterfrom
compulim:fix-3574

Conversation

@compulim
Copy link
Copy Markdown
Contributor

@compulim compulim commented Nov 3, 2020

Fixes #3574.

Changelog Entry

  • Fixed #3574. Workaround Cognitive Services Speech SDK 1.13.1 for removed supported of macOS/iOS, by @compulim in PR #3576

Description

In Cognitive Services Speech SDK 1.12.0-1.13.1, they removed webkitAudioContext (macOS/iOS support). They added back in 1.14.0.

Since we bumped from Speech SDK 1.11.0 to 1.13.1, we need to temporarily add it back.

Design

Adopted code from Speech SDK 1.11.0 to add back webkitAudioContext.

Specific Changes

  • Updated Direct Line Speech createAdapters.js to use webkitAudioContext when audioConfig is not provided
  • Updated Cognitive Services createCognitiveServicesSpeechServicesPonyfillFactory.js to use webkitAudioContext when audioConfig is not provided
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

Comment thread CHANGELOG.md Outdated
Comment thread packages/bundle/src/createCognitiveServicesSpeechServicesPonyfillFactory.js Outdated
Comment thread packages/directlinespeech/src/createAdapters.js Outdated
Copy link
Copy Markdown
Contributor

@corinagum corinagum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple comments

@compulim compulim merged commit 88e3a8f into microsoft:master Nov 3, 2020
@compulim compulim deleted the fix-3574 branch November 3, 2020 10:01
@compulim compulim mentioned this pull request Nov 4, 2020
48 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Speech does not work in macOS/iOS Safari

2 participants