2015-01-15 88 views

回答

0

您应该看看AVAudioRecorder类,它是AVFoundation框架的一部分。

从苹果文档:

An instance of the AVAudioRecorder class, called an audio recorder, 
provides audio recording capability in your application. 
Using an audio recorder you can: 

- Record until the user stops the recording 
- Record for a specified duration 
- Pause and resume a recording 
- Obtain input audio-level data that you can use to provide level metering 

In iOS, the audio being recorded comes from the device connected by the 
user—built-in microphone or headset microphone, for example. 
In OS X, the audio comes from the system’s default audio input device as 
set by a user in System Preferences. 

欲了解更多信息click here

相关问题