mdn / translated-content

The source repository of all translated content for MDN Web Docs
https://developer.mozilla.org/en-US/docs/MDN/Community/Contributing/Translated_content
Other
1.72k stars 8.07k forks source link

issue in mobile H5 application #22191

Open fbzcmk opened 4 months ago

fbzcmk commented 4 months ago

MDN URL

https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API

与此议题相关的小节或标题?

No response

哪些信息是错误、无用或不完善的?

the speech recognition works well on pc , when applied on mobile ,it can recognize only one sentence . then it didn't response anymore,it seems the microphone access has been blocked after one sentence has finished ,although I granted microphone access when recognition.start() Is it possible to provide microphone access API to apply for mobile microphone access authorization during whole application life cycle ?

你期望看到什么?

a guide or demo for application on mobile h5

你有什么支持的链接、参考或引用?

No response

你还想补充什么内容?

No response

MDN metadata

Page report details * Folder: `zh-cn/web/api/web_speech_api/using_the_web_speech_api` * MDN URL: https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API * GitHub URL: https://github.com/mdn/translated-content/blob/main/files/zh-cn/web/api/web_speech_api/using_the_web_speech_api/index.md * Last commit: https://github.com/mdn/translated-content/commit/e005be662421aee99588a6134318f2a1fee7d549 * Document last modified: 2024-06-06T12:39:52.000Z
yin1999 commented 1 month ago

Hey @fbzcmk. Sorry for the delay. I tried the example on my Android phone (oneplus ace 2 pro, Android 14) and I could not get this example to work properly the first time I ran it. I'm not sure if the capabilities of this API is affected by the speech recognition provider (it seems that Chromium itself does not provide speech recognition services, it just uses the speech recognition provider provided by the Android device).

/cc @mdn/mdn-community-engagement

bsmth commented 1 month ago

Thanks for reporting and for tagging us! Could you provide some more information about the mobile operating system and browser version?

You can also try this page which checks support: https://www.google.com/intl/en/chrome/demos/speech.html

edit: note there is also this issue in the browser-compat-data repo: https://github.com/mdn/browser-compat-data/issues/22126

yin1999 commented 1 month ago

Could you provide some more information about the mobile operating system and browser version?

OS: ColorOS 14 (based on Android 14)
Browser Version: Chrome 128.0.66.13.127

You can also try this page which checks support: https://www.google.com/intl/en/chrome/demos/speech.html

I could not get this demo work on my phone, and I woud get some errors (using the "Remote debug tool"):

image