Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyfill using webkitAudioContext #3576

Merged
merged 6 commits into from
Nov 3, 2020
Merged

Conversation

compulim
Copy link
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)

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
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