Does anyone know how to stop the speechSpeakUtterance handler process?
When I send a fairly long paragraph, I would like to be able to end it at any desired moment and not have to wait until it finishes speaking it in its entirety.
JG
how to stop speechSpeakUtterance handler
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 101
- Joined: Mon Jan 03, 2022 7:10 pm
Re: how to stop speechSpeakUtterance handler
From the dictionary
Use the revStopSpeech command to let the user interrupt a lengthy speech, or to stop a speech before it's finished.
You can use the revIsSpeaking function to determine whether there's currently a speech in progress.
Re: how to stop speechSpeakUtterance handler
I think that is different to the new (since v 9.6) library for Mac OS, iOS and Android.
A snippet I found from jacque shows you should be able to do this by
A snippet I found from jacque shows you should be able to do this by
Code: Select all
speechSpeakUtterance(empty)
-
- Posts: 44
- Joined: Thu Jul 24, 2014 8:55 pm
Re: how to stop speechSpeakUtterance handler
I already tried that, but it did not work, it adds to a queue to speak instead..SparkOut wrote: ↑Mon Jun 19, 2023 7:18 pmI think that is different to the new (since v 9.6) library for Mac OS, iOS and Android.
A snippet I found from jacque shows you should be able to do this byCode: Select all
speechSpeakUtterance(empty)
JG
-
- Posts: 44
- Joined: Thu Jul 24, 2014 8:55 pm
Re: how to stop speechSpeakUtterance handler
I found one solution. I dont know if that is the best solution, but it works. I had to Finalize the library and initialize it again.
Code: Select all
on mouseUp pButtonNumber
speechFinalizeLibrary
speechInitializeLibrary
end mouseUp