Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OFF-TOPIC] Microphone recording format



This list is for discussing HTML, CSS and _javascript_ in Safari for iPhone, not Cocoa programming.

Please refer to the excellent documentation provided with the iPhone SDK from within Xcode.  If there is something supported on OS X but not iPhone OS, please file an enhancement request at <https://bugreport.apple.com/> using component "iPhone" and version "New Bugs".

Thanks!

Dave


On Jul 29, 2008, at 2:22 AM, Jonatan Tierno Alvite wrote:

Hello all,
 
Does anyone know how to record voice from the microphone in a format other than caf? I am trying to modify the SpeakHere example, tuning the parameters of the AudioFormat object, for example:
                        audioFormat.mSampleRate                               = 44100.00;
                        audioFormat.mFormatID                                    = kAudioFormatLinearPCM;
                        audioFormat.mFormatFlags                   = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
                       
There are IDs for AMR, MPEG 2 formats, however modifying these parameters result in a corrupt file. Anyone knows how these values can be twitched?
 
Also, a way  to convert audio files from one format to another would be enough. You can find some info here:
 
But it seems to be valid only for Mac OS, not iPhone OS.
 
Thanks in advance and best regards
 
Jonatan Tierno

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Safari-iPhone-Web-Dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/safari-iphone-web-dev/email@hidden

This email sent to email@hidden

References: 
 >(no subject) (From: "Jonatan Tierno Alvite" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.