/    Sign up×
Community /Pin to ProfileBookmark

Opening a succession/multiple of files with Javascript

Hello,

I’ll start by saying I know very little about javascript, but i’m working on it.

I’m trying to create a pronunciation script for a website. I have downloaded all possible sound files (all the sounds an “a” can be, etc.) I have the AudioPlayer set to read the script syllable by syllable
(ie.
<a href=”javascript:void(0)” onMouseOver=”playSound(‘sounds/l.au’)”>L</a>
<a href=”javascript:void(0)” onMouseOver=”playSound(‘sounds/UW.au’)”>oo</a>

<a href=”javascript:void(0)” onMouseOver=”playSound(‘sounds/z.au’)”>s</a>
reads as “lose”)

What I want to do is set the audio player to play all of these sounds on the one word (basically so the script would play the l.au file then when l.au is done it opens uw.au, etc.). I know I can combine all of the sounds in an audio mixer and create a new file for each word I’m pronouncing, but I would prefer not to create that many files. Any advice how to open multiple audio (.au) files in succession?

Thanks,
S

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@gift2womenauthorJan 23.2008 — I have another post on here that I figured I would feel silly hearing the explanation as I thought it would be a simple fix, but perhaps I asked it wrong:

How can I use javascript to open 1 (au) file, when that file is finished or after a set amount of time, whichever is easier, another (au) file opens.

Sounds like it would be simple to someone who has a clue, but I'm pre-noob when it comes to JS. Thanks.

S
Copy linkTweet thisAlerts:
@TheBearMayJan 23.2008 — Please don't open two threads to ask the same question....

Threads merged.
×

Success!

Help @gift2women spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.30,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...