Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to be able to play an audio recording over an open phone conversation. I.e., while the phone is connected (an outgoing call) a prerecorded audio file is played over the open phone connection. How can I do this?

share|improve this question
I believe what you're looking for is a voice mail? – Lie Ryan Oct 10 '11 at 2:33
@LieRyan Could be for putting someone on hold or something as well. – Matthew Read Feb 9 '12 at 18:08

No, the best that you would be able to accomplish is playing a sound through the speaker so the microphone can pick it up. There are no api's that can accomplish that.

share|improve this answer

When i need to play something recorded over the phone, i usually turn on the phone speaker and press up the volume to max. Then people on the other end can hear it, but it works best on HD voice carriers (the audio sounds much better on the other end) :)

share|improve this answer

@jim, Try using AudioTrack API in Stream mode. see below code snippet

            AudioTrack track = new AudioTrack(AudioManager.STREAM_VOICE_CALL, mySampleRate, 
            AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 
            myBuffersize, AudioTrack.MODE_STREAM);

This should work

share|improve this answer
Android Enthusiasts is designed for end-user questions about the Android operating system. This may well be an answer for a programmer, but it is almost certainly not an answer for a user. – eldarerathis Feb 10 '12 at 14:46
Are there any apps that do this? If not, perhaps there's an opportunity here. – Matthew Read Feb 10 '12 at 17:43
@MatthewRead, are there any such apps now? – kagali-san Nov 17 '13 at 1:10
I should comment that this is also not possible.. You simply end up with no audio playing or it only plays on the phone that has the application installed. Would suggest testing before posting. – Mayhem Feb 11 '15 at 7:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.