Closed phpmycoder closed 11 years ago
I've found spawning a new thread works.
Example:
listen_for(/redeye initialize/i) do say "One moment while I initialize RedEye plugin..." Thread.new { init_redeyes update_resel say "SiriProxy RedEye plugin initialized." request_completed } end
@elvisimprsntr Indeed. This fixes the issue! Thanks for your solution!
One of my
listen_for
s runs a script, which accesses and processes data from an API. Because of the size of the data, it takes approximately 1-1.5 seconds to return. Despite the fact that Isay
something before running the script and thensay
the results after (both of which appear in the siriproxy logs as being sent to my phone), Siri doesn't say anything and continues spinning untilrequest_completed
when it says the default "would you like me to search the web for ...".Is there any way to force Siri to say the first statement and make her wait patiently until my second
say
and subsequentrequest_completed
?