Question

I would like to know from some iphone-Audio expert if there is a way to let a sound play through the line in of the microphone, or at least to play from the speaker (not the receiver) during a call.

I've tried different combinations of AVAudioSessionCategory with kAudioSessionProperty_OverrideAudioRoute, but I've noticed that when the iphone is in a call, it plays sounds only through the receiver.

My best try for the moment is to pick the call in speaker mode, and put the AVSession sound in AVAudioSessionCategoryAmbient, but the result is too bad.

I repeat: i would like to play a sounds through the speaker while listening the call through the receiver.

I've used this in: http://www.pallaudio.com , the app that lets you lie at the phone!

Was it helpful?

Solution 4

ok, after long finding, the answer is simply: NO!

OTHER TIPS

I'm curious as to what you're trying to achieve by doing so? Besides the fact that this could get your app rejected for non-standard behaviour (I'm sure Apple has some guidelines related to apps playing sounds during a call), this also seems like a sure-fire way to tick off a user (although maybe that's what you're trying to do).

Very simply. It does it by playing the sound during a call initiated by ANOTHER device. Fooled me too for a minute there...same deal as another app, called "Escape Pod".

Check out http://theamazingaudioengine.com/

It does have the capability to do this. From a user point of view though, I know sometimes Apple will throw a complaint about running sounds through the main speaker while the receiver is enabled at the same time too. Hopefully though, as long as you're not just planning on running fart sounds through the speaker, you should be ok.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top