speechSynthesis.onvoiceschanged event isn't fired

RESOLVED INACTIVE

Status

()

Core
Web Speech
--
enhancement
RESOLVED INACTIVE
2 years ago
4 days ago

People

(Reporter: donrhummy, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20151223140742

Steps to reproduce:

Went here:
http://codepen.io/CreativePunch/pen/sLizk


Actual results:

Get errors and the voices never show


Expected results:

Should have worked like Chrome
(Reporter)

Comment 1

2 years ago
It appears there are no voices returned from speechSynthesis.getVoices()
(Reporter)

Updated

2 years ago
Version: 43 Branch → 46 Branch

Updated

2 years ago
Component: Untriaged → Web Speech
Product: Firefox → Core
See example section of https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/onvoiceschanged.  We don't support onvoiceschanged yet.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
Summary: Speech Synthesis Demo works in Chrome but not Firefox Nightly → speechSynthesis.onvoiceschanged event isn't fired
Version: 46 Branch → Trunk
(Reporter)

Comment 3

2 years ago
(In reply to Makoto Kato [:m_kato] from comment #2)
> See example section of
> https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/
> onvoiceschanged.  We don't support onvoiceschanged yet.

But what does that have to do with not even having any voices? getVoices() returns null.
(In reply to donrhummy from comment #3)
> (In reply to Makoto Kato [:m_kato] from comment #2)
> > See example section of
> > https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/
> > onvoiceschanged.  We don't support onvoiceschanged yet.
> 
> But what does that have to do with not even having any voices? getVoices()
> returns null.

At first, http://codepen.io/CreativePunch/pen/sLizk doesn't work because onvoiceschanged isn't supproted.

When you run (click display) the following JS on scratchpad, does it return 0?

speechSynthesis.getVoices().length

If so, it depends on OS configuration.  If using Windows, you need config SAPI voices via old style control panel.  Our implementation is SAPI only, so we cannot use Windows Store App's voices from Windows 8+ (bug  1235745).
(Reporter)

Comment 5

2 years ago
(In reply to Makoto Kato [:m_kato] from comment #4)

> When you run (click display) the following JS on scratchpad, does it return
> 0?
> 
> speechSynthesis.getVoices().length
> 

Actually, the following code does nothing and it's considered the minimum to implement the API:

    var utterance = new SpeechSynthesisUtterance('Hello Treehouse');
    window.speechSynthesis.speak(utterance);

It runs without error but no sound occurs.
(In reply to donrhummy from comment #5)
> (In reply to Makoto Kato [:m_kato] from comment #4)
> 
> > When you run (click display) the following JS on scratchpad, does it return
> > 0?
> > 
> > speechSynthesis.getVoices().length
> > 
> 
> Actually, the following code does nothing and it's considered the minimum to
> implement the API:
> 
>     var utterance = new SpeechSynthesisUtterance('Hello Treehouse');
>     window.speechSynthesis.speak(utterance);
> 
> It runs without error but no sound occurs.

So I think that your system has no voice system.

Updated

2 years ago
Blocks: 1254378

Updated

2 years ago
Blocks: 1262067

Updated

2 years ago
No longer blocks: 1262067
Check that speechd is installed, and kill it before starting Firefox to make sure it is not in a bad state.

Comment 8

4 days ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 4 days ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.