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
以 JavaScript 實作簡易 Audio Sprites
Search
Zhusee
May 18, 2013
Programming
280
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
以 JavaScript 實作簡易 Audio Sprites
以 Bumbler to Speech 為例
Zhusee
May 18, 2013
More Decks by Zhusee
See All by Zhusee
Doing MVC with Baman.js
zhusee2
0
180
TubeNews.in @ WebConf Taiwan 2013
zhusee2
7
660
Other Decks in Programming
See All in Programming
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
500
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
190
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
630
Are APIs Still Relevant in the AI Era?
soyuka
0
430
カツオ、ご期待ください
suneo3476
0
150
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
2.9k
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
120
AIに “答え“を書かせるのを やめてみた
___akari11
0
110
Workers Cache を知る
syumai
0
340
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
150
AWSに止められる覚悟してますか?
morizo_1984
2
520
mrbgem 三角測量 開発
ogom
0
210
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
How to Ace a Technical Interview
jacobian
280
24k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
580
4 Signs Your Business is Dying
shpigford
187
23k
Automating Front-end Workflow
addyosmani
1369
210k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.1k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
260
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.1k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
610
Everyday Curiosity
cassininazir
0
350
Embracing the Ebb and Flow
colly
88
5.2k
Transcript
Ҏ JavaScript ؆қመ࡞ Audio Sprites Zhusee
[email protected]
Ҏ JavaScript ؆қመ࡞ Audio Sprites Zhusee
[email protected]
ၛ#VNCMFSUP4QFFDI㬪২
Audio Source
Audio Source Ұ ೋ ࡾ ࢛ ޒ ࣣ ീ
े lँँେՈɼ࠱z
None
“Speak” a number 42 d4 d10 d2 ೋ ࢛ े
Array
“Speak” a number .playPartial() d10 d2 d4
“Speak” a number .playPartial() d10 d2 d4
“Speak” a number .playPartial() d10 d2
“Speak” a number .playPartial() d2
Controlling <audio> Element ✤ var audio = document.querySelector(‘audio’) ✤ audio.pause()
✤ audio.currentTime = 2.45 #(sec) ✤ audio.play()
Summary ✤ Combine your audio files ✤ Write down time
information of each partial clip ✤ Control play/pause/position with JavaScript
http://bit.ly/bumbler