2

I have been searching the internet for an answer, on how to play an audio file through the telephone line (See example if you wonder what I mean). Now I have come to this site to find the answer: Is it possible to play an audio file located on your telephone, so that the caller can hear it, without turning on your speaker and let it blast it out loud? If so, does anybody know a site to look it up at?

Example: Peter calls Annie. Annie answers the call, and decides to play her favorite music to Peter, but she doesn't want to turn on her speaker, because her parents are sleeping in the room next to her.

I know that a telecommunications server is able to play music when people are on hold, waiting for an employee or in a queue, but is an Android phone able to do the same?

Zuenonentu
  • 302
  • 1
  • 3
  • 16
  • You have to realize that the prominent usecase for this functionality isn't sharing music, it's playing a recording instead of a voice conversation. While being an interesting topic on it's own, I suspect you will find it very hard to get support on this delicate topic with you being rather new to the community as it's very, very easily to put this to use to cause much distress. – Shark Feb 06 '13 at 14:09
  • You should read these http://stackoverflow.com/questions/8784221/how-to-play-an-audio-file-on-a-voice-call-in-android http://stackoverflow.com/questions/1977777/android-voice-call-logging http://stackoverflow.com/questions/5202277/android-audio-and-voice-processing – Shark Feb 06 '13 at 14:12

1 Answers1

2

You can't do this.

All audio calls are routed through the baseband chip at a hardware level. The underlying telephony technology isn't exposed to the OS, much less the Android APIs.

So basically, this is impossible, unless you're willing to settle for playing it over the loudspeaker and hoping it gets picked up clearly.

Raghav Sood
  • 81,899
  • 22
  • 187
  • 195
  • 1
    Thanks. So I have to wait for the technology to catch up with the idea, or use a communication server in order to do what I want. The loudspeaker solution isn't a solution to me, so I think I'll try the server. But again thanks for the answer – Zuenonentu Feb 06 '13 at 14:29