Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Siri and Ruby

Siri and Ruby

2da0f25da3bb542a8724475589ac79a3?s=128

Ryo Katsuma

June 29, 2013
Tweet

More Decks by Ryo Katsuma

Other Decks in Programming

Transcript

  1. Siri and Ruby TokyuRubyKaigi06 @ryo_katsuma

  2. Hello!! Tokyu Ruby Kaigi

  3. Ryo Katsuma @ryo_katsuma Engineer at COOKPAD Inc. github.com/katsuma twitter.com/ryo_katsuma

  4. http://www.flickr.com/photos/superstarjet/2373405653/ Thank you, SUNTRY !!

  5. ͕ɺ͔͠͠

  6. ਖ਼௚ɺ ਲͬͺΒͬͨɻ

  7. खݩ͕͓΅͔ͭͳ͍

  8. Α͘Θ͔ΒΜ 3FCMPHͪ͠Ό͍ͦ͏

  9. Ͱ΋ɺϏʔϧ͸ ޷͖ͩɻ

  10. టਲͯͯ͠΋ ೔ৗੜ׆Λ ΞϨίϨ͍ͨ͠

  11. Break through?

  12. Siri

  13. You just say something

  14. Siri solves all problems

  15. None
  16. +

  17. + Ruby makes Siri more cool

  18. None
  19. SiriProxy

  20. Siri plugin by simple regexp

  21. I say ‘GO’, You says ‘Stop’

  22. class SiriProxy::Plugin::Sample < SiriProxy::Plugin listen_for /Go/ do say "Stop" request_completed

    end end
  23. class SiriProxy::Plugin::Sample < SiriProxy::Plugin listen_for /Go/ do say "Stop" request_completed

    end end
  24. class SiriProxy::Plugin::Sample < SiriProxy::Plugin listen_for /Go/ do say "Stop" request_completed

    end end very simple!
  25. DNS setting SiriProxy

  26. DNS setting SiriProxy

  27. DNS setting SiriProxy

  28. DNS setting SiriProxy Siri Server

  29. DNS setting SiriProxy Siri Server

  30. Demo 1

  31. Turn on the screen saver https://github.com/katsuma/SiriProxy-Screen

  32. None
  33. def run_screen_saver `/System/Library/Frameworks/ScreenSaver.framework /Resources/ScreenSaverEngine.app /Contents/MacOS/ScreenSaverEngine` end

  34. class SiriProxy::Plugin::Screen < SiriProxy::Plugin listen_for /ը໘Λ?(ফͯ͠|͚ͯ͠)/ do say 'εΫϦʔϯηʔόʔΛىಈ͠·͢' run_screen_saver

    request_completed end end
  35. Demo 2

  36. Turn on/off the light https://github.com/katsuma/SiriProxy-iRemcon

  37. None
  38. iRemocon

  39. Multi remote control with IP address

  40. IP address TCP signal IR

  41. IP address TCP signal Turn on/off the light

  42. Conclusion

  43. Siri + Ruby solves all problems

  44. Have a nice beer!