aryaxt
aryaxt

Reputation: 77616

iphone - How can i read the microphone input?

How can i read the sound data from the microphone? I don't want to record and then access the data, i want to be able to access the sound input live?

Upvotes: 3

Views: 12992

Answers (2)

StarDust
StarDust

Reputation: 855

Check this link:

http://code.google.com/p/ios-coreaudio-example/

Captures from Microphone & plays through speaker.

Upvotes: 4

hotpaw2
hotpaw2

Reputation: 70703

You can record sound (PCM samples) from the microphone to very short memory buffers (as short as a few milliseconds in duration). That's as close to "live" as there is using iOS API's. Look at the aurioTouch example for low latency AudioUnit RemoteIO recording code, with live FFT analysis and display.

Upvotes: 4

Related Questions