When I test the app using Browser (Google Play), it can record and translate correctly.
However, when I install in the mobile, I got below error:
error occurred during microphone initialization: NotReadableError: Could not start audio sourcePlease refer to the attachment
It seems that the WebView of the native-built app doesn't fully support the Web API's media handling features. The Speech Service JavaScript SDK used in this component is based on the Web API. So, this component can be used only as a PWA or in a browser.
Sorry for the inconvenience.
I think the app doesn't not have permission to use Microphone that cause the error.
Hi @Kiet Phan ,
I agree. However, I tried to request Permission for Android but it still does not work.
I use this plugin to request permission from Android: https://www.outsystems.com/forge/component-overview/2040/android-permissions-plugin-o11
However, it still show the same error. You can see from below Microphone Permission has been granted:
Hi @Howard Law,
Allowing the app to access your device's microphone might help resolve the issue.
Thanks
Hi @Aditi Saraswat ,
The native-built app's WebView seems to have restricted support for the Web API's media handling capabilities. Because the Speech Service JavaScript SDK depends on the Web API, this component can only function properly as a PWA or within a browser.
I think you have installed the native build on your device. It seems that the microphone permission settings are different in the Android native build.If you want to try, please use PWA or browser instead of the native build.
I'm sorry, but I don't know much about the microphone permission settings in the Android native build.
Yes Takasi Moriya, I am using the native build.
Even I enable the Microphone permission, I still got the error:
error occurred during microphone initialization: NotReadableError: Could not start audio source
I want to use it in Native Android and iOS.