Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.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
iPhone中的音频录制格式是什么? 在iPhone音频录制中,我应该考虑哪种音频记录格式,因为下一步是将音频记录格式转换为WAV。因此,请告诉我iPhone中哪种录音格式有库可以转换成WAV格式_Iphone_Wav_Audioformat - Fatal编程技术网

iPhone中的音频录制格式是什么? 在iPhone音频录制中,我应该考虑哪种音频记录格式,因为下一步是将音频记录格式转换为WAV。因此,请告诉我iPhone中哪种录音格式有库可以转换成WAV格式

iPhone中的音频录制格式是什么? 在iPhone音频录制中,我应该考虑哪种音频记录格式,因为下一步是将音频记录格式转换为WAV。因此,请告诉我iPhone中哪种录音格式有库可以转换成WAV格式,iphone,wav,audioformat,Iphone,Wav,Audioformat,谢谢。使音频录制比以前的SDK版本简单得多。您可以在录制之前对其进行配置,以满足您的需要 应为WAV文件配置以下设置: NSMutableDictionary* recordSetting = [[NSMutableDictionary alloc] init]; [recordSetting setValue :[NSNumber numberWithInt:kAudioFormatLinearPCM] forKey:AVFormatIDKey]; [recordSetting

谢谢。

使音频录制比以前的SDK版本简单得多。您可以在录制之前对其进行配置,以满足您的需要

应为WAV文件配置以下设置:

NSMutableDictionary* recordSetting = [[NSMutableDictionary alloc] init];
    [recordSetting setValue :[NSNumber numberWithInt:kAudioFormatLinearPCM] forKey:AVFormatIDKey];
    [recordSetting setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey]; 
    [recordSetting setValue:[NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey];
在初始化过程中,这将用作记录器:

recorder = [[ AVAudioRecorder alloc] initWithURL:fileURL settings:recordSetting error:&error];