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?
Tell me more
×
Android Enthusiasts Stack Exchange is a question and answer site for
enthusiasts and power users of the Android operating system. It's 100% free, no registration required.
|
|
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. |
|||
|
|
|
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) :) |
|||
|
|
|
@jim, Try using AudioTrack API in Stream mode. see below code snippet
This should work |
|||||||
|
