Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从ios设备的内部扬声器录制音频_Ios_Objective C - Fatal编程技术网

从ios设备的内部扬声器录制音频

从ios设备的内部扬声器录制音频,ios,objective-c,Ios,Objective C,是否可以从ios设备的扬声器录制音频 例如,如果我正在播放视频,我希望从该视频中提取音频 如果这个问题含糊不清,我很抱歉。您应该看看AVAudioRecorder类,它是AVFoundation框架的一部分 来自苹果文档: An instance of the AVAudioRecorder class, called an audio recorder, provides audio recording capability in your application. Using an audi

是否可以从ios设备的扬声器录制音频

例如,如果我正在播放视频,我希望从该视频中提取音频


如果这个问题含糊不清,我很抱歉。

您应该看看
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.
更多信息