如何记录在Android的一个电话吗? [英] How to record a call in android?

查看:160
本文介绍了如何记录在Android的一个电话吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Recorder = new MediaRecorder();     
Recorder.setAudioSource(MediaRecorder.AudioSource.MIC); 
Recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR); 
Recorder.setOutputFile(FileName); 
Recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

这是我的code,我不能够记录其它的声音person.so我应该使用,而不是AudioSorce.MIC什么。 plz帮助我

this is my Code and i am not able to record the voice of other person.so what should i use instead of AudioSorce.MIC. plz help me

推荐答案

抱歉让你们失望,但你不能,不能在一般情况下。大多数运行Android的手机在硬件/固件布线,使通话的介质不经过应用处理器在所有 - 它从音频到DSP,反之亦然,所以你不能访问它。

Sorry to disappoint you, but you can't, not in the general case. Most Android running phones have the wiring in hardware/firmware so that the media of the call does not pass through the application processor at all - it goes from the audio to the DSP and vice versa, so you cannot access it.

您可以捕捉使用电话的人的声音,而不是周围的其他方式,不考虑傻黑客好像叫人使用的扬声器,并通过手机的麦克风从那里录制的声音......

You can catch the audio of the person using the phone, but not the other way around, disregarding silly hacks like asking the person to use the speakers and recording the sound from there via the phone mic...

这篇关于如何记录在Android的一个电话吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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