flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

web: cannot start speak after flutterTts.stop()

Open BoHellgren opened this issue 3 years ago • 2 comments

🐛 Bug Report

The following logic works on Android but not on web:

FlutterTts flutterTts = FlutterTts();
await flutterTts.speak(text1);
(after a few seconds)
await flutterTts.stop();
await flutterTts.speak(text2);

When running under Safari on an iPhone, the second speak() has no effect and text2 cannot be heard. It works if you wait until all of text1 has been spoken, but not if you interrupt it. (Doing a setVolume while text1 is being spoken also stops the second speak from working.)

Expected behavior

Should work the same way on web as on Android.

Reproduction steps

On an iPhone, start Safari and enter the address of the example program: https://dlutton.github.io/flutter_tts/#/ Fill the text line with text. Press Play and, after a second, press Stop. Press Play again. Silence.

Configuration

iPhone XR iOS 14.4

BoHellgren avatar Mar 03 '21 12:03 BoHellgren

Any solution for this issue at this moment? I'm still facing this issue now

ZMChoo avatar Jun 22 '21 16:06 ZMChoo

Still looking into this issue @ZMChoo .

dlutton avatar Jun 22 '21 21:06 dlutton

fixed in 3.8.2

dlutton avatar Sep 05 '23 08:09 dlutton