我需要知道如何提高通话录音音量 我在此应用程序上看到此选项
https://play.google.com/store/apps/details?id=com.bazmo.TCR
有人知道一些事情吗? 我不想已经尝试过!
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
recorder.setAudioEncodingBitRate(16);
recorder.setAudioSamplingRate(44100);
或者如何打开(提取)媒体文件和振幅(增加音量级别)语音,然后保存到新的媒体文件中。我在 https://code.google.com/p/musicg 上看到了一些东西 但不知道如何使用...
还有一个问题是有什么方法可以减少或调整麦克风的声音吗?
最后一个问题如何将所有Android媒体录音机源(Android设备需要录制声音的所有源)添加到我的项目中?
最佳答案
要增加通话录音音量,请使用 AudioManager,如下所示:
int deviceCallVol; AudioManager音频管理器;
开始录制:
audioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
//get the current volume set
deviceCallVol = audioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL);
//set volume to maximum
audioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, audioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL), 0);
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
recorder.setAudioEncodingBitRate(16);
recorder.setAudioSamplingRate(44100);
停止录制:
//将音量恢复到初始状态
audioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, deviceCallVol, 0);
关于java - 如何提高通话录音音量或打开录音文件来调整声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23957207/