如何在Android中录制语音和录制通话?

如果您知道如何录制语音,并且在通话期间录制来电者和来电者的声音,请帮助我。 如果有人知道,然后给我一个提示。


是的这可能只是做到这一点

final MediaRecorder callrecorder = new MediaRecorder();
callrecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
callrecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
callrecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

callrecorder.setOutputFile(filepath);

try {
    callrecorder.prepare();
} catch (IllegalStateException e) {
    System.out.println("An IllegalStateException has occured in prepare!");
    // TODO Auto-generated catch block
    e.printStackTrace();
} catch (IOException e) {

    //throwing I/O Exception
    System.out.println("An IOException has occured in prepare!");
    // TODO Auto-generated catch block
    e.printStackTrace();
}

try {
    callrecorder.start();
} catch(IllegalStateException e) {
    e.printStackTrace();
    //Here it is thorowing illegal State exception
    System.out.println("An IllegalStateException has occured in start!");
}

停止你可以使用

callrecoder.stop();

看一下这个...

http://androidforums.com/android-lounge/181663-android-phone-call-recording-function.html

简短的答案是...获取Galaxy S,最好是韩国版本。


您无法在Android上录制电话会话。 这些流位于较低级别的操作系统中,并且在应用程序级别中不可访问。 抱歉。

链接地址: http://www.djcxy.com/p/75451.html

上一篇: How can I record voice and record Call in Android?

下一篇: EPPlus insert image as Link to File in Excel document