【问题标题】:Call Recorder issue in some devices , Call recorder not working on device 7.1.1 , not able to record other person voice某些设备中的通话记录器问题,通话记录器在设备 7.1.1 上不起作用,无法录制其他人的声音
【发布时间】:2018-09-27 08:50:52
【问题描述】:

我正在开发一个用于使用媒体记录通话的 Android 应用 录音机,在某些设备上可以正常工作,但不能录制语音 其他人在 7.1.1 及更高版本的设备上,特别是 在 moto g 设备上。

这是我的媒体记录器代码

recorder.setMaxDuration(60 * 60 * 1000);
                    recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
                    recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
                    recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
                    recorder.setAudioEncodingBitRate(64 * 1024);
                    recorder.setAudioSamplingRate(44 * 1000 + 100);
                    recorder.setAudioChannels(MONO_CHANNEL);

有什么方法可以实现吗?请建议

【问题讨论】:

  • 你能解决这个问题吗?
  • 不,它仍然不适用于某些设备。

标签: android call android-6.0-marshmallow mediarecorder call-recording


【解决方案1】:

我在录制通话时遇到了同样的问题。将audioSource改为VOICE_COMMUNICATION即可解决

recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_COMMUNICATION);

【讨论】:

  • 我尝试了同样的方法,但它不起作用。同样我听不到其他人的声音。
猜你喜欢
  • 1970-01-01
  • 2014-05-31
  • 2022-08-22
  • 1970-01-01
  • 2021-09-17
  • 2011-02-14
  • 1970-01-01
  • 1970-01-01
  • 2022-11-11
相关资源
最近更新 更多