Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-08-2010, 07:35 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 1
rjeevan is on a distinguished road
Default How to record audio in RAW format?

Hello,

I'm trying to Implement pocketsphinx in my iphone project... Currently working towards using pre-recorded audio file to Recognise speech..

pocketsphinx has very specific requirement for pre-recorded audio, It has to be "single-channel (monaural), little-endian, unheadered 16-bit signed PCM audio file sampled at 16000 Hz".

I manage to records and save file into WAV format but I cannot find a way to create their RAW format with no headers and little-endian... (I used this example to Record audio: trailsinthesand.com/exploring-iphone-audio-part-7/)

I'm new to iPhone development also, if any one can help how to record audio in RAW format would be much appreciated...

Thanks..
rjeevan is offline   Reply With Quote
Old 09-07-2011, 01:37 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 1
hoshizaru is on a distinguished road
Default any solution?

Hi,

Did you find a solution to your problem? I am also looking for a way to save RAW audio data recorded from the microphone.
If you have a solution, could you please let me know how did you do to get it to work?

Thanks in advance.
hoshizaru is offline   Reply With Quote
Old 09-07-2011, 11:15 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 241
MattW is on a distinguished road
Default

Quote:
Originally Posted by rjeevan View Post
Hello,

I'm trying to Implement pocketsphinx in my iphone project... Currently working towards using pre-recorded audio file to Recognise speech..

pocketsphinx has very specific requirement for pre-recorded audio, It has to be "single-channel (monaural), little-endian, unheadered 16-bit signed PCM audio file sampled at 16000 Hz".

I manage to records and save file into WAV format but I cannot find a way to create their RAW format with no headers and little-endian... (I used this example to Record audio: trailsinthesand.com/exploring-iphone-audio-part-7/)

I'm new to iPhone development also, if any one can help how to record audio in RAW format would be much appreciated...

Thanks..
If you have a WAV file, then it is in raw format. You'll find the audio data right after the WAV file header (which contains important information, such as number of channels, sample rate, etc.). Just search the web for the WAV file format and skip however many bytes the header data is... if memory serves, the header is something like 44 bytes, but you should double check.
__________________

Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----


FourSixteen Productions
MattW is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, iphone, pcm, raw, recording

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 319
14 members and 305 guests
chemistry, Domele, Fstuff, givensur, heshiming, HowEver, iAppDeveloper, iphonedevshani, jbro, JoeRCruso, kapps11, newDev, SLIC, stanny
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,112
Posts: 402,873
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:25 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0