Raw and wav format

All your problems with Audio, Video and Images.

Raw and wav format

Postby srd.pl » Fri Nov 19, 2010 10:49 am

Hello,

I have the following problem - In my android app I need to send the recorded sound (I am using the AudioRecorder class) to a server. Now as far as I know the AudioRecorder class gives the data in a .raw format yes? But the server can only accept .wav files. So what I need to do is to covert the recorder samples to a .wav format. Does any one have any experience on this topic? Can any one give an advice on how to do this in android Java environment?

PS: I am also worried about the endianess problems that my occur.
srd.pl
Junior Developer
Junior Developer
 
Posts: 22
Joined: Wed Jun 02, 2010 12:20 pm

Top

Re: Raw and wav format

Postby jonbonazza » Fri Nov 19, 2010 6:15 pm

I have done this in C++ for a class in the past, but I no longer have the source for it. You will need to look up the structure of a wav file and then store the bytes in that structure.
jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Re: Raw and wav format

Postby srd.pl » Fri Nov 19, 2010 10:54 pm

Thanks I managed to save the file on the server side as a wav using the AudioFormat class. Now I met another strange problem but that is for another topic :>
srd.pl
Junior Developer
Junior Developer
 
Posts: 22
Joined: Wed Jun 02, 2010 12:20 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 30 guests