delta5_race_timer icon indicating copy to clipboard operation
delta5_race_timer copied to clipboard

Safari on iOS speech support

Open PaulWieland opened this issue 6 years ago • 3 comments

For some reason the speech doesn't work in Safari on iOS devices. I believe this can be fixed since https://responsivevoice.org works in Safari.

PaulWieland avatar Aug 01 '18 19:08 PaulWieland

It's a safari related problem. Sounds are working with Chrome.

Cuxx avatar Aug 01 '18 19:08 Cuxx

iOS needs a user interaction to allow speech. I don't know why e.g. the play-button in the settings not work, but i have found a workaround:

Open src/delta5server/templates/layout.html. After {% block content %}{% endblock %} add the following code in a new line: <a href="#" onclick="speak('<div class=timer>Ready</div>');">Allow iOS Speech</a><br /><br />

You must click on "Allow iOS Speech" first, than speech works :)

DevertNet avatar Dec 11 '18 13:12 DevertNet

Cool. I'll try it out when I get a chance. It's an iOS issue where the user has to interface with the page before sound is allowed to play.

scottgchin avatar Dec 11 '18 15:12 scottgchin