enable Web Speech API for desktop

NEW
Unassigned

Status

()

3 years ago
3 months ago

People

(Reporter: dietrich, Unassigned)

Tracking

(Blocks: 3 bugs)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
Basic implementation is complete, and enabled in Firefox OS. Enabling in desktop is just a build flag. API is already shipping in Chrome and Opera.

Let's enable this on desktop.

If for some reason we're not ready to enable in release channels, let's at least make it available to developers somehow (Nightly, Dev Edition, about:config, etc).
(Reporter)

Comment 1

3 years ago
Andrew, how do we get started with this process?
Flags: needinfo?(overholt)
(Reporter)

Comment 2

3 years ago
Hm, looks like maybe already in about:config via media.webspeech.recognition.enable.

What's blocking turning that on by default?
(Reporter)

Updated

3 years ago
Blocks: 1244242
(Reporter)

Updated

3 years ago
Blocks: 1244243
Is this issue for Web Speech recognition API?  Web Speech API has 2 parts (synthesis and recognition).
(Reporter)

Comment 4

3 years ago
This is for both parts.
(Reporter)

Updated

3 years ago
Blocks: 1244460
Depends on: 1003439
(In reply to Dietrich Ayala (:dietrich) from comment #1)
> Andrew, how do we get started with this process?

Sending an intent to ship email is a decent way to kickstart the conversation: https://wiki.mozilla.org/WebAPI/ExposureGuidelines#Email_templates
Flags: needinfo?(overholt)

Comment 6

3 years ago
MDN article: https://developer.mozilla.org/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API

For speech recognition MDN says:

"Firefox desktop and mobile support it in Gecko 44+, without prefixes, and it can be turned on by flipping the media.webspeech.recognition.enable flag to true in about:config. The permissions settings/UI haven't yet been sorted out however, so permission can't be granted to use it by the user, so it can't be used. This will be fixed soon."

I don't know what bug it is which will be fixing it soon. ?

For speech synthesis MDN says:

"Firefox desktop and mobile support it in Gecko 42+ (Windows)/44+, without prefixes, and it can be turned on by flipping the media.webspeech.synth.enabled flag to true in about:config."

That sounds ready to go.
Depends on: 1248897
(In reply to Jefferson from comment #6)
> MDN article:
> https://developer.mozilla.org/docs/Web/API/Web_Speech_API/
> Using_the_Web_Speech_API
> 
> For speech recognition MDN says:
> 
> "Firefox desktop and mobile support it in Gecko 44+, without prefixes, and
> it can be turned on by flipping the media.webspeech.recognition.enable flag
> to true in about:config. The permissions settings/UI haven't yet been sorted
> out however, so permission can't be granted to use it by the user, so it
> can't be used. This will be fixed soon."
> 
> I don't know what bug it is which will be fixing it soon. ?

I also couldn't fine one. Though it looks like the missing thing is that the SpeechRecognition API is not exposed to website content yet. So, I've created bug 1248897.

Sebastian
No longer depends on: 1248897
Depends on: 1268633

Comment 8

2 years ago
I think the issue is that the recognition part (speech to text) hasn't been implemented yet. If you look into the speechRecognition.cpp file, you can just return true everywhere it checks for a permission and websites will get access to the api. However things still don't work because of the lack of recognition part (at least that's what I feel looking at the source). It would be great if anybody can point towards the team working on this, would love to help.

Comment 9

2 years ago
One needs to build Firefox with the flags turned on to include the only current implementation available (pocketsphinx + english). If you guys are willing to move forward with it, I can help you to set and have it running.

Comment 10

2 years ago
(In reply to André Natal from comment #9)
> One needs to build Firefox with the flags turned on to include the only
> current implementation available (pocketsphinx + english). If you guys are
> willing to move forward with it, I can help you to set and have it running.

Interested.
You need to log in before you can comment on or make changes to this bug.