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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Zhusee
May 18, 2013
Programming
280
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
170
TubeNews.in @ WebConf Taiwan 2013
zhusee2
7
650
Other Decks in Programming
See All in Programming
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
430
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
230
IBM Bobを活用したレガシーアプリの最新化
oniak3ibm
PRO
0
120
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
11k
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
310
AIエージェントと協働するCLI開発 — BunとOpenClawで学んだこと
yoshikouki
1
230
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
260
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
1
700
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
1.2k
Inside Stream API
skrb
1
540
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
610
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
13
3.2k
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
50
15k
WCS-LA-2024
lcolladotor
0
610
How STYLIGHT went responsive
nonsquared
100
6.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
200
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Scaling GitHub
holman
464
140k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
560
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.2k
Thoughts on Productivity
jonyablonski
76
5.2k
Design in an AI World
tapps
1
220
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