Blocking or callback version of speech.say()?
The speech module seems like a neat addition, but I'm trying to automate a task that uses speech and since it doesn't block (as in it seems to returns immediately), I can't quite seem to get it to do what I want.
Looking at the iOS documentation it seems like the speech functionality is asynchronous and functions with callbacks, is it possibly to have this type of functionality in Pythonista? If not would it be possible to add a blocking version of the call?
I'm trying to accomplish something like this:
- externally launch my script
- script parses data and then summaries everything with speech
- open another url when script is complete
The way it currently works now, it nearly immediately goes to step 3, after 2. I could just put in a fake delay, but I'm not sure how long the text that going to be read is going to be, so it's not a very good solution.
It's a wonderful app btw, thanks for making it :)
Thanks, I'll consider that.