Need to play sound in a call

If my application records some sound using MediaRecorder, can I play back the recorded audio file to a call that was launched using ACTION_CALL or ACTION_DIAL?

I see that I can start calls from the application, but is there a way for my application to know that the call has been answered? At this point, I would like to play the audio file in a call. Then, is there a way to end the call?

+3
source share
2 answers

This is not yet possible on Android. See this feature request .

You can record your voice from the microphone, but you cannot record the sound of the other side.

0
source

android.intent.action.ANSWER , , , , PhoneStateIntentReceiver.

0

Source: https://habr.com/ru/post/1771092/


All Articles