//导入上面2个框架#import #import //声明下面4个属性@property (nonatomic ,assign)BOOL recording; //判断是否可以录制@property (nonatomic ,strong)NSString *fileName; //音频文件存储.....
分类:
移动开发 时间:
2014-07-30 00:55:42
阅读次数:
320
使用MediaRecorder录制音频步骤:
MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
re...
分类:
移动开发 时间:
2014-05-03 20:51:30
阅读次数:
424