Controlling Text-to-Speech Audio Playback Question
I got stuck on my prototype on a scene where I want the user to be able to tap around and hear different audio being spoken using the text-to-speech response.
Here’s the current scenario:
• The audio is reading back something like a recipe, so it has pauses in it.
• To create the pauses, I used multiple ‘Speak’ responses and changed their start delays.
This is where I run into issues.
• When I tap on another button with a different ‘Speak’ response, I have it ‘Stop’ the speaking first before starting the new speech.
• However, it only stops the current speech and not the additional Speak responses that come later due to their longer start delays.
• I tried putting each step’s Speak response into a component and using Send/Receive (to/from current scene) to stop all audio.
• It seemed to work a little, but if I tap around, it doesn’t seem to be able to handle the calls and quickly falls apart.
Possible solutions that seem less than preferable tbh:
• use multiple scenes (given the set up, this will massively bloat/complicate the file)
• have the text-to-speech read the value of a variable, based on a condition of which step we’re in, and then assign a different value at different start delays (I actually tried this and encountered the same problem, but maybe I’m missing something)
Btw, adding a next/prev step isn’t really applicable as each “step” has multiple steps within it.
Also, since this is a work project, I would need to create a new file to attach in order to share it (sorry for being difficult)
Any thoughts on how to solve this would be amazing!
Possible Updates to Text-to-Speech (for Protopie - as the feature is still in Beta)
If the Speak response was associated with a specific sound element, then I could target it directly and the problem would be solved, OR if I could add multiple text entries at different delays on the same speak response (creating a single timeline, but that sort of breaks the overall 1 timeline-per-layer/element paradigm).
Thanks in advance for the help! 🙏