build next generation apps with eyes and ears using google chrome

20
GoogleIO @ Java Meetup Ahmedabad Build next generation apps with eyes and ears using Google Chrome 25 th Jun, 2014 Dhruv Gohil From Ishi systems

Upload: ahmedabadjavameetup

Post on 05-Jul-2015

93 views

Category:

Documents


2 download

DESCRIPTION

Presented at Google Extended I/O Event at Ahmedabad Java Meetup Group

TRANSCRIPT

Page 1: 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

25th Jun, 2014

Dhruv GohilFrom Ishi systems

Page 2: Build next generation apps with eyes and ears using Google Chrome

Treat your users as human!

UX - 101

Tools should fit human not the other way around!

Page 3: Build next generation apps with eyes and ears using Google Chrome

Now we have books on UX!

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

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

Page 4: Build next generation apps with eyes and ears using Google Chrome

Let's get back to basics..

• I have to tell you something.. I will speak and you will listen.

• So why it has to be different for computers?!

Page 5: Build next generation apps with eyes and ears using Google Chrome

Enter the new era!

• Now browsers can speak to you.

• And browsers can hear you too!

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

Page 6: 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: Build next generation apps with eyes and ears using Google Chrome

Do it yourself!

Page 8: Build next generation apps with eyes and ears using Google Chrome

You talk too much...

● It's time to listen..

● Yes! That's all we need!

Page 9: Build next generation apps with eyes and ears using Google Chrome

Off-line mode too!

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

Page 10: 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: Build next generation apps with eyes and ears using Google Chrome

Command mode!

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

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

Page 12: Build next generation apps with eyes and ears using Google Chrome

But can you see me?

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

Page 13: 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: Build next generation apps with eyes and ears using Google Chrome

What was that?

● Magic of 'Motion detection algorithms'

● Over simplified How To:

– Capture video [getUserMedia()]

– Draw frames [ html5 <canvas> ]

– Run Algorithm to detect change between frames [ .js]

● 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: Build next generation apps with eyes and ears using Google Chrome

More!

● https://github.com/foo123/HAAR.js#live-examples

– Interactive Face Detection

– Many Faces Detection

– Interactive Mouth Detection

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

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

– The Magical Xylophone

Page 16: Build next generation apps with eyes and ears using Google Chrome

But Why chrome?

Page 17: Build next generation apps with eyes and ears using Google Chrome

Its time to...

Page 18: Build next generation apps with eyes and ears using Google Chrome

WebSpeech API fundametals

● Audio capture

● Request authorization

● Audio processing pip line

– Nodes (FFT , Gain, Filter...)

– http://chimera.labs.oreilly.com/books/1234000001552/● Join to destination (Speakers)

● + Visualizations

Page 19: Build next generation apps with eyes and ears using Google Chrome

GetUserMedia API fundamentals

● Audio + Video capture

● Request authorization

● Capture

● Draw (Hidden)

● Analyze + Process

● Re-Draw

Page 20: Build next generation apps with eyes and ears using Google Chrome

And finally...

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

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