Open Bug 1456885 Opened 7 years ago Updated 2 months ago

Not able to use Voice for Google Docs Integration due to missing SpeechRecognition support

Categories

(Web Compatibility :: Site Reports, defect, P2)

Tracking

(Webcompat Priority:P3, firefox101 affected, firefox111 affected)

Webcompat Priority P3
Tracking Status
firefox101 --- affected
firefox111 --- affected

People

(Reporter: pgerman, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: webcompat:platform-bug)

User Story

platform:windows,mac,linux
impact:feature-broken-minor
configuration:general
affects:all

Attachments

(3 files)

In Google Docs, there is an option for 'voice typing'. This is currently unavailable in the build of firefox nightly that I'm on. It would be great for Firefox users to be able to make use of this feature.
It seems that the "Voice Typing" option is available only in "Chrome" browsers (https://support.google.com/docs/answer/4492226?hl=en). So I am not sure if this should be implemented on the Firefox side. Mike could you please give us your opinion regarding this?
Flags: needinfo?(miket)
Interesting, I wasn't aware of this feature before. I would guess this depends on Bug 1248897, can you try to verify Karl?
Flags: needinfo?(miket) → needinfo?(kdubost)
(proactively moving to TE::Desktop)
Component: Untriaged → Desktop
Product: Firefox → Tech Evangelism
Whiteboard: [needsdiagnosis][platform-rel-Google]
Steps to reproduce. 0. Go to docs.google.com with Firefox User agent 1. Login with your account 2. Create a new blank document 3. Head to Tools in the menu bar of Google Docs, there is a Voice Typing menu 4. (In chrome), choosing the menu item opens a pop up with an icon to click to start speaking. Actual: The menu is greyed out on Firefox (both with Firefox UA and faking Chrome UA). With Chrome, the menu is active. So at least they seem to do the right thing here. They seem to detect if Voice recognition is possible. There is no support for Speech Recognition yet in Firefox. https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition In /static/document/client/js/2112717014-kix_main_i18n_kix_tertiary__en_gb.js ```js H(jxe, O); var lxe = ["webkitSpeechRecognition"]; jxe.prototype.dispose = function() { jxe.aa.dispose.call(this); this.L && (this.H = "dispose", this.C.stop()) } ; function kxe() { for (var a = 0; a < lxe.length; a++) if (Rl.hasOwnProperty(lxe[a])) return Rl[lxe[a]]; return null } var mxe = ["webkitSpeechGrammarList"]; z = jxe.prototype; z.rk = function(a, b, c) { this.C.lang = a; this.R = !c; b: { for (a = 0; a < mxe.length; a++) if (Rl.hasOwnProperty(mxe[a])) { a = Rl[mxe[a]]; break b } a = null } a ? (a = new a, b && a.addFromUri(b, 1), c && a.addFromUri(c, 1), b = a) : b = null; b && (this.C.grammars = b) } ; ``` This will become a webcompat issue if SpeechRecognition is activated and they do not modify the code. So this is dependent on Bug 1248897 (SpeechRecognition) and in the current state also on Bug 1409526 (webkitSpeechRecognition alias)
Depends on: 1248897, 1409526
Flags: needinfo?(kdubost)
Thanks Karl!
Summary: Voice for Google Docs Integration → Not able to use Voice for Google Docs Integration due to missing SpeechRecognition support
Priority: -- → P1
Whiteboard: [needsdiagnosis][platform-rel-Google] → [needsdiagnosis][platform-rel-Google][notcontactready]
Depends on: 1474124
Depends on: 1474084
Product: Tech Evangelism → Web Compatibility

See bug 1547409. Moving webcompat whiteboard tags to keywords.

The current WebSpeech API implem should make it exposed. Can we re-check that ? Last time I tested local DeepSpeech with WebSpeech API, that was (partly) on Google Docs. I also got some cases where you may need to fake Chrome user-agent.

Flags: needinfo?(kdubost)
Attached image tools menu

Alexandre,

fwiw, Voice Typing menu has disappeared from chrome and is not available in Firefox after enabling the config.
https://support.google.com/docs/answer/4492226?hl=en
The voice typing menu is absent. The doc doesn't seem up to date.

OR I'm doing something wrong.

Flags: needinfo?(kdubost)

(In reply to Karl Dubost💡 :karlcow from comment #8)

Created attachment 9112186 [details]
tools menu

Alexandre,

fwiw, Voice Typing menu has disappeared from chrome and is not available in Firefox after enabling the config.
https://support.google.com/docs/answer/4492226?hl=en
The voice typing menu is absent. The doc doesn't seem up to date.

OR I'm doing something wrong.

Thanks Karl, was that when faking Chrome user-agent ? If not, can you try with UA spoofing?

Flags: needinfo?(kdubost)

I tried:

  1. with Chrome
  2. with Firefox
  3. With spoofing ua on Firefox to be chrome.

Menu is not here.

Flags: needinfo?(kdubost)

I just tried Voice Typing in Chrome today and it works just fine. Confirmed there is no such menu item on Firefox (without spoofing UA). I'm not sure how niche this feature is but I've seen schools push it for kids to use, which is to say pushing them to use Chrome as it stands.

so impersonation Chrome UA on Firefox Nightly, I still don't get the menu.
They are detecting

var JHh = [
'webkitSpeechRecognition'
],
LHh = [
'webkitSpeechGrammarList'
];

in https://docs.google.com/static/document/client/js/777684991-client_js_prod_kix_tertiary__en_gb.js

And according to Bug 1409526 it has been implemented.
https://searchfox.org/mozilla-central/rev/e0eb861a187f0bb6d994228f2e0e49b2c9ee455e/dom/media/webspeech/recognition/SpeechRecognition.h#74-77
and
https://searchfox.org/mozilla-central/rev/e0eb861a187f0bb6d994228f2e0e49b2c9ee455e/dom/media/webspeech/recognition/SpeechGrammarList.h#38-41

André,
do you know what could be missing?

Or maybe I should directly ask Google what do they need to move forward with Voice Typing.
I'll do that.

Flags: needinfo?(anatal)

Sent a message to Google gsuite discuss to understand what their blockers on enabling voice typing for Firefox.

Webcompat Priority: --- → P1
Whiteboard: [needsdiagnosis][platform-rel-Google][notcontactready]

(In reply to Karl Dubost💡 :karlcow from comment #12)

do you know what could be missing?

Note that Speech Recognition is disabled by default everywhere, and is available Nightly-only behind the media.webspeech.recognition.enable preference. I believe the plan is not to ship the current implementation into release and enable it by default, but the plan is to build something that works offline on the user's device using DeepSpeech (see bug 1474084), but Adam or Nils might know more.

There's no current plans to work on this feature anymore. @Dennis is right, the recognition part of the WSA is available only in Nightly behind that pref, but compatibility with Google properties is unknown given the way they implemented the API in Chrome.

Flags: needinfo?(anatal)

Let's downgrade as P3. But we don't have any other websites having this issue.

Webcompat Priority: P1 → P3

The feature is still not available when using Firefox:

Chrome:
https://prnt.sc/LhyOeS7PehdN

Firefox:
https://prnt.sc/_9vdpHLhUn4v

Tested with:

Browser / Version: Firefox Nightly 101.0a1 (2022-04-10) (64-bit) / Chrome Version 100.0.4896.75 (Official Build) (64-bit)
Operating System: Windows 10 PRO x64

Assignee: nobody → kdubost
Status: NEW → ASSIGNED
Flags: needinfo?(dschubert)

Sorry, there was a problem with the detection of inactive users. I'm reverting the change.

Assignee: nobody → karl+moz
Status: NEW → ASSIGNED
Severity: normal → S3
Assignee: karl+moz → nobody
Status: ASSIGNED → NEW

The feature is still N/A for Firefox: https://prnt.sc/ixX73PybxUqM

Tested with:

Browser / Version: Firefox Nightly 111.0a1 (2023-01-18) (64-bit)
Operating System: Windows 10 PRO x64

Assignee: nobody → kberezina
Status: NEW → ASSIGNED
See Also: → 1856507
Depends on: 1856507
See Also: 1856507

Comment on attachment 9382754 [details]
voice typing is now easily available on docs

Hi @divya

I see your screenshot. But I want to ask you: does voice typing actually work in Firefox? What did you do differently that the other posters didn't?

Flags: needinfo?(divya.mundhada.cse)

(In reply to J. Bumblebee Extraordinaire from comment #22)

Comment on attachment 9382754 [details]
voice typing is now easily available on docs

Hi @divya

I see your screenshot. But I want to ask you: does voice typing actually work in Firefox? What did you do differently that the other posters didn't?

This is spam. If you are not a spammer, please say so :)

Flags: needinfo?(divya.mundhada.cse)

(In reply to :gerard-majax from comment #23)

(In reply to J. Bumblebee Extraordinaire from comment #22)

Comment on attachment 9382754 [details]
voice typing is now easily available on docs

Hi @divya

I see your screenshot. But I want to ask you: does voice typing actually work in Firefox? What did you do differently that the other posters didn't?

This is spam. If you are not a spammer, please say so :)

Ok maybe I'm mistaken. The screenshot just shows that the menu entry is back, echo'ing to comments above where it was removed. But unfortunately, we still have no implementation for it (we dropped the work on deepspeech)

Duplicate of this bug: 1885027
User Story: (updated)
Priority: P1 → P2
Severity: S3 → S4
User Story: (updated)
Assignee: kberezina → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: