flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

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

Open Varun-Kolanu opened this issue 1 year ago • 2 comments

🐛 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:

  • [x] :robot: Android

Varun-Kolanu avatar May 11 '24 06:05 Varun-Kolanu

Can anyone solve this problem?

alikperislam avatar Jul 14 '24 09:07 alikperislam

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.

Varun-Kolanu avatar Jul 14 '24 15:07 Varun-Kolanu