Mailing Lists: Apple Mailing Lists

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

(no subject)



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:

http://developer.apple.com/iphone/library/documentation/MusicAudio/Conceptual/CoreAudioOverview/ARoadmaptoCommonTasks/chapter_4_section_3.html#//apple_ref/doc/uid/TP40003577-CH6-SW23

 

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



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.