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
AIと共にエンジニアとPMの “二刀流”を実現する
naruogram
0
130
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
2
180
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
2
120
「速くなった気がする」をデータで疑う
senleaf24
0
150
Kubernetes上でAgentを動かすための最新動向と押さえるべき概念まとめ
sotamaki0421
3
440
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
Nuxt Server Components
wattanx
0
260
Linux Kernelの1文字のミスで 権限昇格ができた話
rqda
0
2.3k
Coding as Prompting Since 2025
ragingwind
0
770
2026-03-27 #terminalnight 変数展開とコマンド展開でターミナル作業をスマートにする方法
masasuzu
0
310
ファインチューニングせずメインコンペを解く方法
pokutuna
0
280
今年もTECHSCOREブログを書き続けます!
hiraoku101
0
230
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
54k
Building AI with AI
inesmontani
PRO
1
870
Building the Perfect Custom Keyboard
takai
2
720
Skip the Path - Find Your Career Trail
mkilby
1
100
Technical Leadership for Architectural Decision Making
baasie
3
310
Leo the Paperboy
mayatellez
7
1.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
170
We Are The Robots
honzajavorek
0
210
Agile that works and the tools we love
rasmusluckow
331
21k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
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