dlutton / flutter_tts

Flutter Text to Speech package
MIT License
597 stars 247 forks source link

Asked to disconnect from ComponentInfo{com.google.android.tts/... #493

Open Varun-Kolanu opened 4 months ago

Varun-Kolanu commented 4 months ago

🐛 Bug Report

When I try to use flutter_tts package, it's getting disconnected when device's camera app is opened and getting connected approx after 1min.

image

Expected behavior

It should not have been disconnected and should be working fine

Reproduction steps

Try to use flutter_tts package and open the camera app then immediately try to use flutterTts.speak. It won't work because it got disconnected.

Configuration

Was using Realme 5 pro for testing.

Version: 4.0.x

Platform:

alikperislam commented 1 month ago

Can anyone solve this problem?

Varun-Kolanu commented 1 month ago

Can anyone solve this problem?

Try in different device which have good RAM and all. I faced that because, when I was using camera, camera was occupying the resources and hence the Google Speech API was getting disconnected. After the camera is closed, it's again reconnecting after some 30sec. When I used another device where resource management was good, this issue was not seen.

If you can't use any other phone, wait for the app to get connected to API using the while loop.