| Putting
Streaming Audio and Music
on the Web
Assignment: (Do after Class)
1. Download and install Windows
Media Encoder.
2. Practice using Windows Media Encoder to convert
some of your favorite MP3 files into streaming audio files.
Remember, you can select the quality and size of your
streaming audio files in Media Encoder.
3. Using the HTML code below, practice embedding some
of these streaming audio files into one of your webpages.
4. Go to one of your favorite streaming music pages on
the web and look at the source code for this page. Can you
tell how they embedded audio files into their webpage?

1. Advanced
Slide Show Javascript code paget
--Example
of Picture Slide Show
2. See examples of Picture Slide Show with Music
- Example
of today's webpage with music
- aliasshow.htm
(Picture show without Music)
- aliasshow2.htm
- aliasshow3.htm
- aliasshow4.htm
2. Use
Windows Media Player to convert CD music files
to wave, mp3, or wma files
2.Windows
Media Encoder to create streaming audio
and video files.
2. Popular Audio and Video Players for the Web
- Windows
Media Player 8
- RealPlayer
8
- QuickTime
5
- Macromedia
Shockwave Player (includes Flash Player)
- Winamp
3. Popular Audio Compression Software:
- Media
Cleaner Pro 5
- QuickTime
5.0
- CakeWalk Metro and Sonar
Software
- RealSystem
Producer Plus
- QuickTime
Pro
- Cool Edit
2000
4. There are ways to reduce the size of an audio file
so that
it will download faster on the
web:
-
Length of the audio clip. You should keep
the audio sample
as short as possible. Use just part of a song.
-
Number of channels. A mono audio file requires
half the
disk space of a stereo file and is recommended for web audio.
-
Bit depth. Audio files for the web are most
often saved
at 8-bit instead of 16-bit files.
-
Sampling rate. Cutting the sampling rate
in half will
cut the file size in half. Audio files that are voice-only
can be reduced down to 8 Khz. Music will sound
acceptable at 22 Khz
5. Two audio formats for the web: Non-Streaming and Streaming
-
Nonstreaming Audio files must be downloaded from
a web server in their entirety before they can begin
playing on your computer.
-
Streaming Audio files begin playing almost immediately
as they are slowly downloaded from the server.
-
See Shareware.com:
Streaming Audio Tools
6. There are 8 common web audio formats
-
Wav
-
MP3
-
RealAudio
-
MIDI
-
AU
-
RMF
-
AIFF
-
Shn
7. On CDs, the audio file is a cda file.
You can convert long
cda files to MP3 files, send them across
the
web, and then reconvert these files
to Wav files and
burn them on a CD.
8. You can't convert a normal CD music file into a
"wma" file. In order to convert a song on a CD to
a streaming audio file, first convert it into "MP3"
or "WAV" file and then use windows media encoder
to convert the file into a "wma" file.
8. What is your favorite MP3 software?
-
MusicMatch Jukebox
6
-
Winamp.com
-
Sonique Media Player
-
Liquid
Audio Player
9. Linking and Playing audio files on the web
-
A simple link:
Play the Doors song
<a href="doors.wma">Play the Doors song.</a>
- Playing a song as a background song:
a. Background sound plays just one
Autostart=true
Hidden=true
Loop=false
Code for this trick:
<a href="audio5.htm">Background sound plays
just one<br>
</a><br>
Autostart=true<br>
Hidden=true<br>
Loop=false<br>
b. Background sound plays
continuously
Autostart=true
Hidden=true
Loop=true
c. Background sound plays just twice
Autostart=true
Hidden=true
Loop=2
- Embedding
a music file and play console on a webpage:
1.Use
Dreamweaver and select "Insert" and select "Media"
and then select "Plugins.
2. Select on the Sound object image and then
select the properties and parameters of your sound
file.
3. Here are a set of properties and parameters for
setting up your console and sound file:
CONTROLS=console
--Big console (160 x 60 pixels)
--Small console (145 x 15 pixels)
LOOP=true | false | number
AUTOSTART= true | false
HIDDEN=true (hides console from view)
VOLUME=(0-100)
STARTTIME=minutes: seconds (02.15 for 2 min. and 15
secs.)
ENDTIME=minutes: seconds (03.25 for 3 min. and 25 secs.)
4. Examples of Audio file links: Rocky
Horror Sounds Links
- TimeWarp
MP3
- Time Warp--Simple Link
-
Time
Warp with small console
-
Time Warp with regular console
Code for this trick:
<embed src="timewarp.wma" width="144"
height="40" pluginspage="timewarp.wma" controls="console"
autostart="false" loop="false" align="absmiddle"></embed>
Time Warp with regular console<br>
-
Time Warp saved for a
computer running with a 28 k. modem.
-
Time Warp set to play first
part of opening of the song: 0:00 -- 0:45 seconds.
5. See adding sound to pages using Mouseover
- Use Behaviors window and select "Play Sound"
- Now select behavior on Mouse up, down, over, out,
or click or double-click
- Be Careful using this trick. It needs to be precisely
controlled
- See Mouseover music example page
- See Mouseover Music Example with
console bars
- See Mouseover Music Example without
consoles
6. Sound recording using a microphone with Windows
Media Encoder
-
Testing sound file
- Record simple voice recordings at lower resolution
than complex musical recording.
7. The Place of Audio files in websites?
- Music or MP3 sites
- Background sounds
- Special effects
- Flash presentations
- Recoded speeches
- Live press conferences and audio performances.
- Web radio
- Internet Chats





|