dlutton / flutter_tts

Flutter Text to Speech package
MIT License
608 stars 256 forks source link

No Sound #274

Open callmejm opened 3 years ago

callmejm commented 3 years ago

🐛 Bug Report

Log are showing tts are running, but no sound, whenComplete still trigger when end

await ttsService.speak("somelongtext1");
await ttsService.speak("somelongtext2").whenComplete((){
  print("done!");
});

image

Expected behavior

have sound coming out

Reproduction steps

Configuration

Version: flutter_tts: ^3.2.2

Platform: Android

dlutton commented 3 years ago

@callmejm do you have any additional information on this issue? Is this happening on a real device or an emulator and what kind of device/emulator are you using? What's the android version you're running? Also, is the volume up on the device and/or did you possibly change the tts volume through this package?

985211yyg commented 2 years ago

device: Redmi M2007J17C deviceVersion: 30 flutter_tts: ^3.2.2

dlutton commented 2 years ago

@985211yyg thank you for the information, I'll attempt to replicate the issue.

Yue-plus commented 2 years ago

image

I also met the problem in android platform! 我也在安卓平台遇到了这个问题!

There was no sound in the virtual device or in the physical device test 在虚拟机和物理设备测试都没有声音。

This is I'm development project: https://github.com/Yue-plus/flutter_cue 这是我正在开发的项目:https://github.com/Yue-plus/flutter_cue

Yue-plus commented 2 years ago

Run flutter build apk:

 Building with sound null safety

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
e: C:/Users/Yue_plus/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.7.10/d70d7d2c56371f7aa18f32e984e3e2e998fe9081/kotlin-stdlib-jdk8-1.7.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version
 of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
e: C:/Users/Yue_plus/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.7.10/1ef73fee66f45d52c67e2aca12fd945dbe0659bf/kotlin-stdlib-jdk7-1.7.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version
 of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
e: C:/Users/Yue_plus/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The
 binary version of its metadata is 1.7.1, expected version is 1.5.1.
e: C:/Users/Yue_plus/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible v
ersion of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
Running Gradle task 'assembleRelease'...                           75.5s
√  Built build\app\outputs\flutter-apk\app-release.apk (17.8MB).
thuchau commented 1 year ago

Any update? I have the same problem. The issue just occur sometime.

flutter_tts: ^3.6.3 Real device: Android Xiaomi (Android ver 10) and LG (Android ver 10)

dongdiep00 commented 1 year ago

Add this code to AndroidManifest.xml file will fix no sound on android `

`