iOS录音总结
来源:互联网 发布:商家淘宝客不付佣金 编辑:程序博客网 时间:2024/05/16 01:53
// 创建录音配置信息的字典
NSMutableDictionary *setting = [NSMutableDictionary dictionary];
// 音频格式
setting[AVFormatIDKey] = @(kAudioFormatAppleIMA4);
// 录音采样率(Hz) 如:AVSampleRateKey==8000/44100/96000(影响音频的质量)
setting[AVSampleRateKey] = @(8000.0);
// 音频通道数 1 或 2
setting[AVNumberOfChannelsKey] = @(1);
// 线性音频的位深度 8、16、24、32
setting[AVLinearPCMBitDepthKey] = @(8);
//录音的质量
setting[AVEncoderAudioQualityKey] = [NSNumber numberWithInt:AVAudioQualityHigh];
NSMutableDictionary *setting = [NSMutableDictionary dictionary];
// 音频格式
setting[AVFormatIDKey] = @(kAudioFormatAppleIMA4);
// 录音采样率(Hz) 如:AVSampleRateKey==8000/44100/96000(影响音频的质量)
setting[AVSampleRateKey] = @(8000.0);
// 音频通道数 1 或 2
setting[AVNumberOfChannelsKey] = @(1);
// 线性音频的位深度 8、16、24、32
setting[AVLinearPCMBitDepthKey] = @(8);
//录音的质量
setting[AVEncoderAudioQualityKey] = [NSNumber numberWithInt:AVAudioQualityHigh];
0 0
- iOS录音总结
- IOS录音
- iOS 录音
- iOS录音
- iOS 录音
- iOS 录音
- iOS 录音
- iOS录音
- iOS录音
- iOS 录像录音
- 关于ios下录音
- IOS-录音功能
- Cocos2d-x IOS录音
- iOS - 简单录音:
- ios 录音播放问题
- IOS-录音功能
- IOS-录音功能
- ios下录音
- Servlet——HttpServletRequest
- Farm Irrigation
- 编译原理 基础 ----------持续更新
- Java提高篇(三):fail-fast机制
- 电路与Multisim 电流探针与电压探针的使用
- iOS录音总结
- 三丶基元类型、值类型和引用类型
- 人啊,究竟为了什么而活?
- HDU 1576 A/B
- Android 显示和隐藏软键盘
- 详解YUV
- iOS UIScrollView的使用及其不能滑动问题解决
- iOS真机调试
- MyBatis学习总结[3]-多表查询