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
1
260
以 JavaScript 實作簡易 Audio Sprites
以 Bumbler to Speech 為例
Zhusee
May 18, 2013
Tweet
Share
More Decks by Zhusee
See All by Zhusee
Doing MVC with Baman.js
zhusee2
0
150
TubeNews.in @ WebConf Taiwan 2013
zhusee2
7
600
Other Decks in Programming
See All in Programming
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
310
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
320
Итераторы в Go 1.23: зачем они нужны, как использовать, и насколько они быстрые?
lamodatech
0
720
テストコード文化を0から作り、変化し続けた組織
kazatohiei
2
1.5k
暇に任せてProxmoxコンソール 作ってみました
karugamo
1
720
20年もののレガシープロダクトに 0からPHPStanを入れるまで / phpcon2024
hirobe1999
0
430
Cloudflare MCP ServerでClaude Desktop からWeb APIを構築
kutakutat
1
540
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
1
510
testcontainers のススメ
sgash708
1
120
17年周年のWebアプリケーションにTanStack Queryを導入する / Implementing TanStack Query in a 17th Anniversary Web Application
saitolume
0
250
今年一番支援させていただいたのは認証系サービスでした
satoshi256kbyte
1
250
バグを見つけた?それAppleに直してもらおう!
uetyo
0
180
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
460
33k
Side Projects
sachag
452
42k
Building Adaptive Systems
keathley
38
2.3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
GitHub's CSS Performance
jonrohan
1030
460k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
4 Signs Your Business is Dying
shpigford
181
21k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
How to Ace a Technical Interview
jacobian
276
23k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Mobile First: as difficult as doing things right
swwweet
222
9k
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