通话记录器无法在android 10(q)中工作 [英] Call recorder not working in android 10 (Q)

查看:266
本文介绍了通话记录器无法在android 10(q)中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android 10(Pixel 3A)中,通话记录器在这段时间内一直记录为空白.在Android 8之前的所有手机上都运行良好,而在Android 9中,大多数手机仅记录了一个侧面语音(但是在像素3A上运行良好)

Call recorder is recording blank for the duration in Android 10 (Pixel 3A). It was working fine for all phones till Android 8 and in Android 9 most phones were recording only one side voice (however it was working fine in pixel 3A)

有什么方法可以在Android 10中记录通话吗?

Is there any way to record calls in Android 10?

以下代码似乎不再起作用.

The below code doesn't seem to be working anymore.

    int audioSource = MediaRecorder.AudioSource.VOICE_CALL;
    mediaRecorder.setAudioSource(audioSource);
    mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
    mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
    mediaRecorder.setAudioEncodingBitRate(32);
    mediaRecorder.setAudioSamplingRate(44100);
    mediaRecorder.setOutputFile(MediaUri);
    mediaRecorder.prepare();
    mediaRecorder.start();

如果使用SDK 28或更低版本,则会在整个过程中进行通话录音,但不会发出任何声音.如果使用SDK 29,则通话记录会在开始时失败,说检查回叫中的可用音频.

If SDK 28 or below is used call recording happens for the whole duration but without any voice. If SDK 29 is used call recording fails at the beginning saying check available audio from callback.

我希望它是Google Android 10中的一个错误,并且会通过一些补丁进行修复.

I hope its a bug in Google Android 10 and some patch will fix it.

推荐答案

可以使用Accessibility Service.

多维数据集呼叫记录器和BoldBeast都可以在Android 10(Pixel 3A)中完美录制双方语音,而无需扎根或成为系统应用程序.他们俩都使用辅助功能服务.

Cube call recorder and BoldBeast both record perfectly both side voice in Android 10 (Pixel 3A) without having to root or being a system app. Both of them use Accessibility service.

链接中的详细信息.

这篇关于通话记录器无法在android 10(q)中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆