Skip to content

speechSynthesis.speak() Not Working on iOS Safari When Triggered Programmatically #366

@Arham-12336

Description

@Arham-12336

Bug Description
I'm building a voice-enabled chatbot using Easy Speech for text-to-speech functionality. While it works correctly on Windows and Android devices, the speech output fails on iOS devices. After investigation, I discovered that Safari on iOS blocks autoplay of speech unless it is initiated through a user interaction. This behavior prevents Easy Speech from functioning as expected.

Steps to Reproduce

  1. Import and initialize Easy Speech.
  2. Attempt to trigger speech output from a text input (e.g., after an API response or in useEffect) without a direct user action.

Expected Behavior
Speech should play automatically without requiring explicit user interaction, consistent with behavior on Windows and Android browsers.

Device Information

  • Devices: iPhone, iPad
  • Browser: Safari, Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions