Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Web Speech API
Search
Pascal Helfenstein
March 04, 2015
Programming
97
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Web Speech API
Pascal Helfenstein
March 04, 2015
Transcript
20 slides
Web Speech APIs
$WHOAMI I am Pascal Helfenstein nicam
Why speech?
None
None
What do we need?
Speech Recognition Speech Synthesis “It can talk” “It can hear”
Some Intelligence “It can think”
The browser can do it!
How does it speak? var msg = new SpeechSynthesisUtterance('Hello World');
// Config (optional) msg.voice = 'Google UK English Male'; msg.volume = 1; // 0 <-> 1 msg.rate = 1.5; // 0 <-> 1 msg.pitch = 1; // 0 <-> 2 speechSynthesis.speak(msg);
How does it listen? var recognition = new webkitSpeechRecognition(); //
Config (optional) recognition.lang = "en-US"; // "de-DE", "en-IN" recognition.continuous = true; recognition.interimResults = true; recognition.addEventListener('result', function(event) { console.log(event.results[0][0].transcript); // "whats the time" console.log(event.results[0][0].confidence); // 0.93414807319641 }); recognition.addEventListener('end', function(event) { // Start your action }); recognition.start();
How does it think? \_(ツ)_/¯
Ask \_(ツ)_/¯
DEMO
WebSockets API Calls Demo architecture Speech Recognition Speech Synthesis
Browser Support
None
None
What to look out for • interactivity requires SSL… •
synthesising long texts breaks it • it’s not good in noisy environments
Questions?
Thanks!
More Decks by Pascal Helfenstein
See All by Pascal Helfenstein
Chatbots
nicam
1
100
Service Worker
nicam
0
86
IoT + Voice = Awesome
nicam
0
92
Introduction to AngularJS
nicam
1
170
Other Decks in Programming
See All in Programming
Spec-driven Development with AI
simas
PRO
0
2.3k
protojson における文字化けの扱い
kazuki1023
0
430
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
210
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
350
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.4k
小さなアプリを作って公開するまで
onozaty
0
190
Getting Started with Vibe Coding
miccheng
0
230
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
370
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
190
GraphQL の onError と Nullability のこれから
quramy
0
220
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
180
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
300
Deep Space Network (abreviated)
tonyrice
0
420
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7.1k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
830
The untapped power of vector embeddings
frankvandijk
2
2k
Everyday Curiosity
cassininazir
0
400
Practical Orchestrator
shlominoach
192
12k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
810
Amusing Abliteration
ianozsvald
1
390