Skip to content

docs: add workaround for ios .speak without interaction #368

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jankapunkt
Copy link
Member

Adds the workaround proposed by @Arham-12336 to the FAQ section

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the FAQ documentation to include a new workaround for iOS Safari's speechSynthesis.speak behavior when triggered without user interaction.

  • Added a new FAQ entry and code snippet demonstrating a dummy utterance approach
  • Updated the table of contents to include the workaround link
Comments suppressed due to low confidence (1)

FAQ.md:141

  • Review the issue URL references in the related issues section for consistency; ensure they point to the correct repository to avoid reader confusion.
- https://github.com/jankapunkt/easy-speech/issues/51


The issue on iOS devices is likely due to WebKit's autoplay restrictions on speech synthesis.
Safari blocks `speechSynthesis.speak()` when it's not triggered by a direct user interaction, such as a button click.
If invoked from an asynchronous source like an API response
Copy link
Preview

Copilot AI Apr 30, 2025

Choose a reason for hiding this comment

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

Consider clarifying the sentence by explicitly stating that a dummy utterance must be triggered by a visible user action (e.g., a button click), so readers can better understand where to bind this workaround.

Copilot uses AI. Check for mistakes.

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.

speechSynthesis.speak() Not Working on iOS Safari When Triggered Programmatically
1 participant