Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play audio file when receiving the call [duplicate]

Is it possible to modify an active call by overlaying a sound track during the call? I looked up the SDK, but couldn't find any API to do this in the documentation.

I am trying to investigate the feasibility of playing a previously recorded call/audio clip onto an ongoing call.

like image 998
Shoan Avatar asked Oct 10 '10 13:10

Shoan


People also ask

How do you play music on both sides of a call?

Turn on the hands free function of your phone. Create a media player, set the media source, set the volume to 1.0f (highest) and call player. start() . If the microphone and speakers on the phone are of reasonable quality, the other party to the call will hear the music.

How can I play multiple audio files on Android?

i) First, you can select a single app from the list to allow you to play sound in the background while another app is already playing audio. ii) Another option is, you can select “All apps” to turn on multi-stream audio. 4] Select your apps and you're good to go.


1 Answers

Is it possible to modify an active call by overlaying a sound track during the call?

No, sorry, there is no API to access the in-call audio stream.

like image 173
CommonsWare Avatar answered Nov 03 '22 15:11

CommonsWare