Forum Discussion
Web Speech API not working in Edge v. 147
Hi Everyone! Our developers are investigating and need some additional information. If you are able, can you provide the following?
1. Navigate to edge://metrics-internals/#variations and provide the values for SpeechNetworkStack and CFRSpeechServiceProtectECS experiments. It is possible you will not have these but if you do, it will look something like this:
"SpeechNetworkStack": {
"enableFeatures": [
"msSpeechRecognitionChromiumNetworkStack"
]
},
"CFRSpeechServiceProtectECS": {
"enableFeatures": [
"msSpeechSynthesisServiceUseCetoService",
"msSpeechRecognitionServiceUseCetoService"
]
},
2. After you see the failure, navigate to edge://histograms and provide the information under the following sections (they will all be right next to each other)
"Microsoft.SpeechRecognition.CancellationReason"
"Microsoft.SpeechRecognition.Error"
"Microsoft.SpeechRecognition.ErrorRate"
"Microsoft.SpeechRecognition.Event"
"Microsoft.SpeechRecognition.Method2"
"Microsoft.SpeechRecognition.SdkInstall"
"Microsoft.SpeechRecognition.WasRateLimited"
If you prefer, please feel free to send me a message with this information. Thanks!
-Kelly
I did some additional tests and got some observations.
I used Speech Translator extension for the tests, basically it restarts the speech recognition onend() or onerror() events.
On the first start it returned me "No speech" error this time (so it means it started normally and there was just no sound), but on the restart I kept getting "Network error" over and over again.
Then I tried again (complete new initialization of SpeechRecognition) and I got "Network error" right away and kept getting "Network error" over and over again.
I tried a bit later and got "No speech" 2 times and then "Network Error" again.
I did some tests with different VPNs and without any - in my case it didnt affect the behavior.
And I dont have any "Microsoft.SpeechRecognition" records here:
edge://metrics-internals/#variations
The only related to SpeechRecognitions lines there are:
"CFRSpeechServiceProtectECS": { "enableFeatures": [ "msSpeechSynthesisServiceUseCetoService", "msSpeechRecognitionServiceUseCetoService" ] },I recoded histogram for the attempt where I got 2 "No Speech" and then many "Network Error" (full report sent in dm):
Histograms The page will show the difference in histogram data since you switched to Monitoring mode. The page will automatically refresh every 1 second unless you click stop. Include histograms from subprocesses - Histogram: Microsoft.SpeechRecognition.CancellationReason recorded 2 samples, mean = 1.0 (flags = 0x41) [#] 0 O (0 = 0.0%) 1 --O (2 = 100.0%) {0.0%} 2 ... - Histogram: Microsoft.SpeechRecognition.Error recorded 4 samples, mean = 26.0 (flags = 0x41) [#] 0 ... 25 --O (2 = 50.0%) {0.0%} 26 O (0 = 0.0%) {50.0%} 27 --O (2 = 50.0%) {50.0%} 28 ... - Histogram: Microsoft.SpeechRecognition.ErrorRate recorded 20 samples, mean = 2.6 (flags = 0x41) [#] 0 ----O (4 = 20.0%) 1 ----O (4 = 20.0%) {20.0%} 2 ----O (4 = 20.0%) {40.0%} 3 ----O (4 = 20.0%) {60.0%} 4 ... 7 ----O (4 = 20.0%) {80.0%} 8 ... - Histogram: Microsoft.SpeechRecognition.Event recorded 8 samples, mean = 0.5 (flags = 0x41) [#] 0 ----O (4 = 50.0%) 1 ----O (4 = 50.0%) {50.0%} 2 ... - Histogram: Microsoft.SpeechRecognition.Method2 recorded 8 samples, mean = 1.5 (flags = 0x41) [#] 0 ----O (4 = 50.0%) 1 ... 3 ----O (4 = 50.0%) {50.0%} 4 O (0 = 0.0%) {100.0%} - Histogram: Microsoft.SpeechRecognition.SavedAudioLength recorded 4 samples, mean = 2.0 (flags = 0x41) [#] 0 ... 2 ----O (4 = 100.0%) {0.0%} 3 ... - Histogram: Microsoft.SpeechRecognition.SdkInstall recorded 4 samples, mean = 1.0 (flags = 0x41) [#] 0 O (0 = 0.0%) 1 ----O (4 = 100.0%) {0.0%} 2 ... - Histogram: Microsoft.SpeechRecognition.WasRateLimited recorded 4 samples, mean = 0.0 (flags = 0x41) [#] 0 ----O (4 = 100.0%) 1 ...So overall it looks like some issue related to rate limiting...