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
[flutter_tts] Manage a speaking state on the state changed callback #140
Conversation
* Fix flutter-tizen#87 Signed-off-by: Boram Bae <boram21.bae@samsung.com>
This comment has been minimized.
This comment has been minimized.
Another warning on TM1 and R800:
|
I was only getting this error when I pressed the play button while speaking, and I thought this error is reasonable. |
|
Co-authored-by: Swift Kim <swift.kim@samsung.com> Signed-off-by: Boram Bae <boram21.bae@samsung.com>
plugin->channel_->InvokeMethod("speak.onPause", std::move(args)); | ||
} else if (current == TTS_STATE_READY) { | ||
if (previous == TTS_STATE_PLAYING || previous == TTS_STATE_PAUSED) { | ||
plugin->EndSpeaking(); | ||
plugin->channel_->InvokeMethod("speak.onCancel", std::move(args)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Known issue: The "speak.onCancel" method is always called even when the utterance completes successfully.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your working! 😄
Signed-off-by: Boram Bae boram21.bae@samsung.com