I would like to know if there’s an example code somewhere about porting the speak here example code for iPhone to the Mac.
What I basically want to do is register the sound of the user from the microphone and play it back.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
“Speak Here” uses Audio Queue Services for recording and playback. AQ Services is a pure C framework that can be used from Cocoa. It is available on the Mac since 10.5.
If you want to use Audio Queues on the Mac, this sample code might be a good starting point:
http://developer.apple.com/library/mac/#samplecode/AudioQueueTools/Introduction/Intro.html#//apple_ref/doc/uid/DTS10004380
On 10.7 you can also use the Cocoa framework AVFoundation. It provides higher abstraction and makes writing a simple record/playback app pretty easy.
http://developer.apple.com/library/mac/#samplecode/AVRecorder/Introduction/Intro.html
For 10.6 you could look into QTKit.