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
270
以 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
160
TubeNews.in @ WebConf Taiwan 2013
zhusee2
7
630
Other Decks in Programming
See All in Programming
歴史から学ぶ「Why PHP?」 PHPを書く理由を改めて理解する / Learning from History: “Why PHP?” Rediscovering the Reasons for Writing PHP
seike460
PRO
0
160
最新のDirectX12で使えるレイトレ周りの機能追加について
projectasura
0
300
Level up your Gemini CLI - D&D Style!
palladius
1
110
全員アーキテクトで挑む、 巨大で高密度なドメインの紐解き方
agatan
7
9k
「文字列→日付」の落とし穴 〜Ruby Date.parseの意外な挙動〜
sg4k0
0
260
Doc Translate - LLMを活用したコードドキュメント自動翻訳VSCode拡張機能
eycjur
0
110
生成AIを活用したリファクタリング実践 ~コードスメルをなくすためのアプローチ
raedion
0
120
AIを駆使して新しい技術を効率的に理解する方法
nogu66
1
660
「AWS CDK入門」の前日譚/Prequelto-Introduction-To-AWSCDK
tyumugi1113
0
100
手軽に積ん読を増やすには?/読みたい本と付き合うには?
o0h
PRO
1
110
CloudNative Days Winter 2025: 一週間で作る低レイヤコンテナランタイム
ternbusty
7
1.7k
30分でDoctrineの仕組みと使い方を完全にマスターする / phpconkagawa 2025 Doctrine
ttskch
2
440
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
97
6.4k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
118
20k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Six Lessons from altMBA
skipperchong
29
4.1k
Embracing the Ebb and Flow
colly
88
4.9k
Faster Mobile Websites
deanohume
310
31k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
34
2.3k
The Language of Interfaces
destraynor
162
25k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8k
Automating Front-end Workflow
addyosmani
1371
200k
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