Apps with Ears And Eyes! Build next generation apps with eyes and ears using Google Chrome

21
GoogleIO @ Java Meetup Ahmedabad Build next generation apps with eyes and ears using Google Chrome

description

Build next generation apps with eyes and ears using Google Chrome

Transcript of Apps with Ears And Eyes! Build next generation apps with eyes and ears using Google Chrome

Page 1: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

GoogleIO @ Java Meetup Ahmedabad

Build next generation apps with eyes and ears using Google Chrome

Page 2: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Treat your users as human!

l UX - 101

l Tools should fit human not the other way around!

Page 3: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Now we have books on UX!

l With computers, we lost 'human touch' in interaction

l Touch screens brought it back, but frankly its not the natural way to do 'things'

Page 4: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Let's get back to basics..

l I have to tell you something.. I will speak and you will listen.l So why it has to be different for computers?!

Page 5: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Enter the new era!

l Now browsers can speak to you.l And browsers can hear you too!

http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API

Page 6: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Demo time!

https://www.google.com/intl/en/chrome/demos/speech.html

Page 7: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Do it yourself!

Page 8: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

You talk too much...

l It's time to listen..

l Yes! That's all we need!

https://translate.google.co.in/#auto/hi/Welcome%20to%20Ishi%20Systems

Page 9: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Off-line mode too!

http://syl22-00.github.io/pocketsphinx.js/

Page 10: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

This is how translation should work!

http://www.moreawesomeweb.com/demos/speech_translate.html

Page 11: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Command mode!

l I am married.... ammm.. Can I command my computer to do things?

https://www.talater.com/annyang/ https://github.com/TalAter/annyang

Page 12: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

But can you see me?

http://wolframhempel.github.io/photobooth-js/

Page 13: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Ok but how its useful?

http://revealjs.herokuapp.com/

Time to demo!, again.! :-)

https://github.com/willy-vvu/reveal.js

Page 14: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

What was that?

l Magic of 'Motion detection algorithms'l Over simplified How To:

Capture video [getUserMedia()] Draw frames [ html5 <canvas> ] Run Algorithm to detect change between frames [ .js]

l If you are deeply interested Read : http://labs.littlemissrobot.com/behind-the-mirror/

http://www.adobe.com/devnet/html5/articles/javascript-motion-detection.html

Page 15: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

More!

l https://github.com/foo123/HAAR.js#live-examples Interactive Face Detection Many Faces Detection Interactive Mouth Detection

l l http://www.soundstep.com/blog/experiments/jstracking/

Motion tracking l http://www.soundstep.com/blog/experiments/jsdetection/

The Magical Xylophone

Page 16: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

But Why chrome?

http://caniuse.com/#feat=web-speech

Page 17: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Its time to...

Page 18: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

WebSpeech API fundametals

l Audio capturel Request authorizationl Audio processing pip line

Nodes (FFT , Gain, Filter...) http://chimera.labs.oreilly.com/books/1234000001552/

l Join to destination (Speakers)l + Visualizations

Page 19: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

GetUserMedia API fundamentals

l Audio + Video capturel Request authorizationl Capturel Draw (Hidden)l Analyze + Processl Re-Draw

Page 20: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

And finally...

लगता� हैं� बर्फ गिगर रहैं हैं�!

https://github.com/IonicaBizau/WebcamSnowhttp://ionicabizau.net/WebcamSnow/

Page 21: Apps with Ears And Eyes!  Build next generation apps with eyes and ears using Google Chrome

Keep hacking!

http://topheman.github.io/parallax/

Thanks!