2013年9月24日星期二

android how to implement call recording function

There are two problems :
1. calls later how to trigger the recording function is activated , to use multi-threading it , what is the process code .
2. recording is bidirectional, one's own call recording via mic recording, then the other side of it , it would not be recorded with the mic are they not recorded sound , do not have to open handsfree job ?
------ Solution ---------------------------------------- ----
1, guess need multi-threading
2, that under the agreement it
------ Solution ---------------------------- ----------------


recorder = new MediaRecorder();
// 设置录音为麦克风
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
recorder.setOutputFile(recordAudioFile.getAbsolutePath());
try {
recordAudioFile.createNewFile();
recorder.prepare();
recorder.start(); 
} catch (IOException e) {
e.printStackTrace();
}

------ Solution ------------------ --------------------------
6 F prawn if you only want to record your own voice how do like off the PC machine stereo mix has this function it
------ Solution ---------------------------- ----------------
each other's voices underlying phone module can be captured to
------ For reference only --------- ------------------------------
Meirenhuida Mody, answer the first question line ah
------ For reference only ---------------------------------------
you this is not what is recorded from the mic , one's own voice is heard, and the other how to do ?

------ For reference only ---------------------------------- -----
can detail what, the second may be more difficult to resolve , first can you give some examples or code , not necessarily recording is triggered when a call on the line

------ For reference only ---------------------------------- -----

each other's voices can be recorded down brother,

You can first try what I've tried OK ~
------ For reference only --------------- ------------------------
good , prawns , that there is a problem in the first category . . How the recording during a call , when it is triggered . .
otherwise I would not try it . . .
------ For reference only -------------------------------------- -
can use the boot to start a broadcast service background to monitor the incoming radio broadcast when the call arrival time . With phoneMamager.lisen (); to deal with.
------ For reference only -------------------------------------- -
I also try this with a mac to record each other's voices very quietly , would have VOICE_CALL can record audio down the line , but it seems a lot of phones are restricted for security right out of this , if VOICE_CALL will complain , so I have also been thinking about recording of the problem .. landlord if there any good way , trouble say Ha !
------ For reference only -------------------------------------- -
best not to use the mic to record inside , Andrews this point do not, with the palm of the previous system , the recording is very clear.
------ For reference only -------------------------------------- -
landlord do you implement two-way audio

------ For reference only ---------------------------------- -----
huh. Certainly can be achieved. But not yet. . Either way a lot of recordings in order to achieve the different models or else a lot of problems . . .
------ For reference only -------------------------------------- -
in the end how to achieve ?
------ For reference only -------------------------------------- -



really it ?

没有评论:

发表评论