Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
以 JavaScript 實作簡易 Audio Sprites
Search
Zhusee
May 18, 2013
Programming
270
1
Share
以 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
160
TubeNews.in @ WebConf Taiwan 2013
zhusee2
7
640
Other Decks in Programming
See All in Programming
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
290
Programming with a DJ Controller — not vibe coding
m_seki
3
470
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.7k
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.3k
第3木曜LT会 #28
tinykitten
PRO
0
120
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
830
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
150
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
1
500
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
260
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
390
Kingdom of the Machine
yui_knk
2
1.1k
Spec-driven Development: How AI Changes Everything (And Nothing)
simas
PRO
0
370
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
A Soul's Torment
seathinner
6
2.7k
Mind Mapping
helmedeiros
PRO
1
170
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
280
Balancing Empowerment & Direction
lara
6
1.1k
How to build a perfect <img>
jonoalderson
1
5.4k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
530
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1k
Git: the NoSQL Database
bkeepers
PRO
432
67k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
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