Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback registered in ttsInitHandler is never called #53

Closed
1 of 2 tasks
Dimous opened this issue Aug 11, 2019 · 3 comments
Closed
1 of 2 tasks

Callback registered in ttsInitHandler is never called #53

Dimous opened this issue Aug 11, 2019 · 3 comments
Assignees

Comments

@Dimous
Copy link

Dimous commented Aug 11, 2019

🐛 Bug Report

Expected behavior

this._flutterTts = FlutterTts();
this._flutterTts.ttsInitHandler(() {
print("init");
});

I expect it to output "init" in the console.

Callbacks registered in other handlers setStartHandler/setCompletionHandler are called when speak is called.

Configuration

Version: 0.2.6

Android: 5.1.1
Flutter: git master 83a8a575eed882c49b629effedf7c95b6184515d
TTS engine: com.google.android.tts/com.google.android.tts.service.GoogleTTSService

Platform:

  • 📱 iOS
  • 🤖 Android
@dlutton dlutton self-assigned this Aug 12, 2019
@dlutton
Copy link
Owner

dlutton commented Aug 19, 2019

@Dimous I tested it out on API level 28 using the example in this repo and it's working for me. Which Android API version are you using?

@Dimous
Copy link
Author

Dimous commented Aug 19, 2019

Hello!

compileSdkVersion 29
minSdkVersion 19
targetSdkVersion 29

Device: Samsung Galaxy J3

@Dimous
Copy link
Author

Dimous commented Aug 19, 2019

I set tts parameters (pitch, volume, language) right after FlutterTts instantiation and they are applied, so, actually, I don't need ttsInitHandler. It doesn't affect usability, as speech is working. It is not a problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants