TTSlib - speaking halts drawing
in
Contributed Library Questions
•
2 years ago
I am using TTSlib, but the main draw() loop seems to be paused while it is actually saying something. For instance, in the following demo, it stops outputting the millis()
Is there a simple way around this, or would the only solution be to have the call to TTSlib in a separate thread ( http://wiki.processing.org/w/Threading)?
Is there a simple way around this, or would the only solution be to have the call to TTSlib in a separate thread ( http://wiki.processing.org/w/Threading)?
- import guru.ttslib.*;
- TTS tts;
- void setup() {
- size(100,100);
- tts = new TTS();
- }
- void draw() {
- println(millis());
- }
- void mousePressed() {
- tts.speak("Hi! I am a speaking Processing sketch");
- }
1