-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Youtube Player paused when calling speechToText.listen() #472
Comments
|
YouTube player sounds like a different issue than 374. Because SpeechToText takes over the audio channel while it is listening I can see why YouTube might pause. Do you have start/stop sounds configured in your app? |
I played the video on mute, but the problem is still not resolved. Is this the default behavior when I combine them together? |
I don't know, I've never tried it. Do you have the start/stop sounds configured? If you do I'd suggest trying it without them. If it still pauses that would tell us something. |
I don't understand. What do you want me to start/stop sound of? |
Probably same issue here. I'm trying to make a talking app with speech_to_text and then play the response audio with audio player or something, but once I trigger speech_to_text no other sound can be played until I reopen a new simulator, seems like this audio channel issue but I tried all the possible stop and start methods I can and no luck.
|
@sowens-csd When I call speechToText.listen(), It blocks the current playing video in video_player package also. |
@xweng1016 Have you found any workaround? |
have you got any solution for this , i also want to use speech to text and record the same audio and play in the app when needed |
@kuberanb Can you describe more detail about your case? |
@wamynobe I want the audio recording and speech_to_text to work simulataneously that is when i click the button the audio should record and store it in storage and get the text from the audio and show it in the screen . When i try to enable both at same time the speech_to_text stops listening so how to fix this , i have also mentioned you in my code |
@kuberanb because speech_to_text is running on main thread and so do the audio media. my suggestion is that you should try another way to use speech to text. such as build your own speech to text package. I am working on a new speech to text that is spawned by another thread. You can try this approach. |
@kuberanb to reconfirm that the audio resource using by webview or some packages like flutter_video ... conflicted with speech to text audio resource so it will pause audio or even the video. |
I'm facing the same problem #374. I have created a demo repo. In this repo I tried to do what you suggested in issue 374. You can see the print() in the build() function. I didn't notice any further rebuilds after I pressed the Speech To Text Button. But the Youtube player is pause until the listening process ends. I have try on Android device. You can pull my repo and give it a try (https://github.com/tuyennvt/demo_speech_to_text). Thank you!
The text was updated successfully, but these errors were encountered: