07-02-2025, 12:31 AM
Once it starts shelling and speaking, it pushes your text to speech into a buffer and won't quit until it speaks it all fully for us.
It sounds like the only way to do what you want is to break down the speaking so it speaks per line, instead of per paragraph, and check for keypresses between those speak statements.
Speak "Hello there brave adventurer."
CheckForInput
Speak "This is the end of the world and you are the hero in these dark times.
CheckForInput
Speak "If you don't save the world...."
CheckForInput
Speak "Well, the world will probably just end!!!"
CheckForInput
It sounds like the only way to do what you want is to break down the speaking so it speaks per line, instead of per paragraph, and check for keypresses between those speak statements.
Speak "Hello there brave adventurer."
CheckForInput
Speak "This is the end of the world and you are the hero in these dark times.
CheckForInput
Speak "If you don't save the world...."
CheckForInput
Speak "Well, the world will probably just end!!!"
CheckForInput


