Monday, April 14, 2014

android how to implement call recording function


There are two problems:
1 How to trigger the recording function is activated after the call, what to use multi-threading, what is the procedure code.
2 is a two-way audio, call recording via mic's own record, and that the other side of it, it would not be recorded with a mic can not fundamentally sound recording, do not have to open speakerphone job?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Why no answer, answer the first question line ah
Reply:
1, guess need multithreading
2, according to the agreement that it
Reply:
 

recorder = new MediaRecorder ();
/ / Set the record for the microphone
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 ();
}

Reply:
You this is not what is recorded from the mic, one's own voice is heard, and the other how to do?
reference to the third floor sky123123 reply:
Java code


recorder = new MediaRecorder ();
/ / Set the record for the microphone
recorder.setAudioSource (MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat (MediaRecorder.OutputF ......

Reply:
What can be more detailed, and the second may be more difficult to resolve, the first one can give some examples or code, not necessarily recording is triggered during a call on the line
reference to the second floor programmerno1 reply:
1, guess need multithreading
2, this according to the agreement it

Reply:
references, 4th Floor wood61001914 reply:
you this is not what is recorded from the mic, one's own voice is heard, and the other how to do?

References to the third floor sky123123 reply:

Java code


recorder = new MediaRecorder ();
/ / Set the record for the microphone
recorder.setAudioSource (MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat ......

The other party's voice can also be recorded for Columbia,

You can first try what I've tried OK ~
Reply:
6th Floor, prawns if you only want to record your own voice how do turn off the PC like a stereo mix has this function it
Reply:
Well, prawns, there is the first question that category. . How to trigger a call when recording it. .
Otherwise I could not try Yeah. . .
reference to the 6th floor sky123123 reply:
references, 4th Floor wood61001914 reply:
You this is not what is recorded from the mic, one's own voice is heard, and the other how to do?

References to the third floor sky123123 reply:

Java code


recorder = new MediaRecorder ();
/ / Set the record for the microphone
recorder.setAudioSource (MediaRecorder.AudioSource.MIC) ......

Reply:
The other party's voice can capture the underlying phone module to
Reply:
You can use the boot to start a broadcasting service background to monitor the incoming broadcast, when the arrival of an incoming call when the broadcast. With phoneMamager.lisen (); processed.
Reply:
I also tried this with mac record each other's voices very quietly, would have VOICE_CALL can record audio at the same time 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 been questions to the recording .. If there is any good way to landlord, trouble say Ha!
Reply:
Best not to use the mic, to the record, Andrews this point do not, with the palm of the previous system, the recording is very clear.
Reply:
This bi-directional recording your landlord realized yet

Reply:
Ha ha. Certainly be achieved. But not yet. . Either way a lot in order to achieve the recording or else different models have a lot of problems. . .
Reply:
In the end how to achieve?
Reply:
references, 5th Floor wood61001914 reply:
What can a little detail, and the second may be more difficult to resolve, the first one can give some examples or code not necessarily the recording is triggered during a call on the line
[Quote = reference to the second floor programmerno1 reply:]

1, guess need multithreading
2, this according to the agreement it



Really can?

No comments:

Post a Comment