Sign in to follow this  

Streaming Audio, How?

This topic is 4398 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys, I'd like to ask how streaming audio is done? kinda like Skype or internet radios, how do they stream audio? anyone have any resource/tutorial about it? Assuming I know how to record audio and play audio files. and no, i'm not looking for a particular API for streaming music...more of a tutorial on "how to do it myself as an exercise"...:) thanks!

Share this post


Link to post
Share on other sites

hi,

thanks for the fast reply.

sorry, i must've made some mistake in my previous post.

assuming i know how to record audio into a file through an API and play the file with an API.

how do i get wav bits? i know i'll have to study the .wav file format right? how do i know how much 'wav bits' to get before i send it to the network for it to be realtime?

thanks.

Share this post


Link to post
Share on other sites
hmm...i was thinking about streaming audio realtime...

so is it possible that i just save, say, every 1 second of recorded audio to a file, send that file to the other party, and on the other party's machine, play the audio file? will that be realtime enough? would it be fast?

it might be choppy, i think...

any ideas on what the algorithm would be?

Share this post


Link to post
Share on other sites
Each wav file contains a value that indicates the approximate bandwidth needed to play the file. Obviously, the overhead of streaming that file will add to the required bandwidth. And then more importantly, wav files can be encoded with many different codecs. You would need to either ensure that everyone listening to the stream had the required codecs, or a better way, at least had one particular codec that the stream server uses when it re-encodes the wav.

Share this post


Link to post
Share on other sites
The wav format is not so much a particular data format. It is more of a container format. The actual audio data is in a format determined not by the wav format, but by the codec used to produce the data. The wav file contains a field that indicates which codec was used.

Share this post


Link to post
Share on other sites

This topic is 4398 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this