【问题标题】:Call recording not working in marshmallow and above通话录音在棉花糖及以上版本中不起作用
【发布时间】:2017-07-21 07:28:47
【问题描述】:

另一端声音无法录音。 * 已授予所有权限。 它在“一加三”设备和其他一些设备上也能完美运行。

主要发生在 Redmi 4a、Micromax Vdeo 4 和其他一些设备上。

myRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
myRecorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS);
myRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
myRecorder.setAudioSamplingRate(48000);
myRecorder.setAudioEncodingBitRate(384000); 

有人可以帮忙吗?

提前致谢

【问题讨论】:

  • 你添加了运行时权限
  • 是的。我已授予所有权限,并且记录也在创建。只有声音是问题

标签: android mediarecorder audiorecord


【解决方案1】:

将您的音频源设置为 MediaRecorder.AudioSource.VOICE_CALL。但它可能不适用于棉花糖以上的所有设备。我们需要 android.permission.CAPTURE_AUDIO_OUTPUT 权限才能在棉花糖设备上工作。但目前仅授予系统应用程序。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多