flutter_tts
flutter_tts copied to clipboard
cannot speak after update flutter version
🐛 Bug Report
The same code run successfully on flutter 1.22.5, but not work on flutter 2.0.2.
Expected behavior
Reproduction steps
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.2, on Microsoft Windows [Version 10.0.17763.1613], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[√] Android Studio (version 4.1.0)
[√] Connected device (1 available)
FlutterTts flutterTts = FlutterTts();
await flutterTts.speak("Hello World"); // has no return and doesn't talk
I can't get any error messages. I tried to call other methods and they didn't work either. The future methods have no return.
Configuration
Version: 3.0.0 and 2.1.0
Platform:
- [ ] :iphone: iOS
- [x] :robot: Android
Can you provide the output from flutter doctor and any other error messages you might be receiving in the logs.
Same here, also on android (emulator). No error messages, but it seems like the futures of the methods never complete.
[✓] Flutter (Channel stable, 2.0.3, on Mac OS X 10.15.7 19H114 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Connected device (3 available)
• No issues found!