'Text to Speech and gif Flutter
I am using text to speech plugin and gif in my flutter application. And if the assistant is speaking, I want the gif that appears on the screen to change. When the assistant is finished speaking, I want the previous gif to play. How can I do this?
These are the plugins I use: https://pub.dev/packages/text_to_speech https://pub.dev/packages/image
Solution 1:[1]
Since text_to_speech 0.2.3 doesn't have a status listener (it doesn't have the ability to detect when speech has started or ended), it's not possible to do what you're trying to do using that package.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nerdy Bunz |
