plamoni / SiriProxy

A (tampering) proxy server for Apple's Siri
GNU General Public License v3.0
2.12k stars 343 forks source link

How to output multiple "say" commands and dont hide the first ones #525

Closed shakaraba closed 11 years ago

shakaraba commented 11 years ago

Hi,

when i put this:

listen_for /hello/i do say "Hello" say "123" say "Goodbye" request_completed end

It output the three commands to the iPhone, but the two first are hidden very quickly.

If i put a request_completed after each say, it will only execute the first say.

I want to display each message in a separate box and display all of them as seen in this video (0:28):

http://www.youtube.com/watch?v=W7D6lyqdlMc

Any clue in how to achieve this?

Thanks!

hey101 commented 11 years ago

I took their example for the test map and modified it. I don't know if this is the best way but it definitely works:

listen_for /hello/i do add_views = SiriAddViews.new add_views.make_root(last_ref_id) utterance = SiriAssistantUtteranceView.new("How are you?") utterance2 = SiriAssistantUtteranceView.new("Doing good") add_views.views << utterance add_views.views << utterance2

send_object add_views #send_object takes a hash or a SiriObject object
request_completed

end

elvisimprsntr commented 11 years ago

Glad you found a method

shakaraba commented 11 years ago

Works perfectly,

thanks!