New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 768199 link

Starred by 6 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

speechSynthesis fails for long text without warning and blocks the API

Reported by aur...@gmail.com, Sep 24 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36

Steps to reproduce the problem:
1. Open Google Chrome (can't test it on Chromium, because lack of voices)
2. run `window.speechSynthesis.speak(speechUtteranceWithBigText);`

What is the expected behavior?
It must speak until the end or trigger onerror.

What went wrong?
It stops after 38 words (i dont know if the number can vary) without trigger onend or onerror. And worst: it blocks the `speechSynthesis.speak()` until restart the browser. Page reload is useless.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 61.0.3163.91  Channel: stable
OS Version: Debian Stable
Flash Version:
 
test-speech.html
1.3 KB View Download
Labels: Needs-Triage-M61
Cc: sc00335...@techmahindra.com
Components: Internals>SpeechSynthesis
Labels: M-63 Triaged-ET
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on 61.0.3163.91 and on latest dev 63.0.3222.0 using Ubuntu 14.04 with below Observations.

1.In Ubuntu 14.04 Opened attached test-speech.html file and speech stopped at count of 18 without showing onend error.

This seems to be a Non-Regression issue seen from M-50[50.0.2624.0].  Hence marking as Untriaged for Linux and adding appropriate labels.

NOTE:In Mac 10.12.6 and Windows10 opened attached html file and it kept counting without any stop. Tried till 76.

This has been recorded on Stack Overflow since at least 2014; see https://stackoverflow.com/q/21947730/5025060.  I am seeing it under Windows 7 Pro 64 bit with Chrome Version 63.0.3239.132 (Official Build) (64-bit) and under Chromium 63.0.3239.84 Built on Ubuntu, running on Ubuntu 16.04.

It appears to occur only with voices not loaded to the local machine (under Windows this typically means any non-native voice).  The limitation seems to be time spent talking, not number of words.  Multiple observations set the limit at 15 seconds.  A workaround is to issue speechSynthesis.resume() every 14 seconds while speechSynthesis is speaking; see https://stackoverflow.com/q/42875726/5025060.

Comment 4 by willst...@gmail.com, May 23 2018

Also Mac OS

Sign in to add a comment