How to play audio file to call? - android

How do I play audio file to a call for android?
I want to make some kind of machine answering program. is it possible?

You don't appear to be able to intercept incoming calls.
ETA: er, apparently that isn't true? See:
How to programmatically answer a call

Related

Android Speech Recognition API on pre-recorded audio?

I know I can use the Android SpeechRecognizer API for speech recognition, but that API is meant for pressing a button, saying something, and then having it spit the text out. I'm wondering if there's a way to use a pre-recorded file (3gp) on the device and run that through some built-in library. All of my searches have only brought up the SpeechRecognizer, which can't use audio files.
As I have found, it isn't possible with android's API, but there may be a way around it.
Try this url.
EDIT:
I haven't tested it myself, it doesn't really look like it's supported, but check the link I guess.
I hope this helps!

Intercept the outgoing call data, alter it & then write it back out- Why it is not possible?- Android

We are working on an application similar to "Funny Call" on Google Play.
When user makes a call to another another contact, we would be intercepting the call and will add some effects to it and then this modified sound will reach the recipient.
I've searched for the solution to this problem and found out that many developers say Android does not support this.
Android API for call sound stream manipulation
Can the Android API be leveraged to modify the caller's voice during the call?
But, I would still like to know if its really not possible straight from the horse's mouth. I would like to know if there is any specific reason behind this.
Is there really no way to achieve this?
Can you please also tell me if there is any possibility of this being possible in near future?
Is there really no way to achieve this?
If you read through the comments on the app you cited, it would appear that they are doing VOIP, and that their servers are then actually placing the call, as that is why there are calling rates to different countries. I see no evidence that they are using the on-device telephony capability. You, of course, are welcome to supply such evidence, if you have any.

Streaming call voice in android?

I just came to know that it's possible to record call voice (both incoming and outgoing) in android, I want to know about any API or methods which can tether this call voice during a call.
Thanks in advance.
I am sure it is not supported to record a call but just read the below answer.
on the link
i was looking for same thing, i found arguments here pretty intresting and convincing ! hope this helps you

How to record call in android? Is it possible?

I want to record call from android phone.
I am using android.media.MediaRecorder pckg.
Also used following code:
mrec.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
mrec.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mrec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
But I didn't succeed in recording an incoming call.
Can anyone recommend a tested code snippet?
Also,
Is this true?
http://groups.google.com/group/android-developers/browse_thread/thread/c2bc85eb60ae2aa5?pli=1
http://code.google.com/p/android/issues/detail?id=2117#c226
Standard distributions of Android does not support it till now.
You can vote up these if you want:
http://code.google.com/p/android/issues/detail?id=4075
http://code.google.com/p/android/issues/detail?id=2117
It's not a software problem and I don't think the baseband firmware vendors will fix this. Most likely because it's illegal in most western countries to record calls without consent of the other person.

Uplink DTMF tone generation

Is there any way I can dynamically generate uplink DTMF tone (ie the receiver hears it)?
When I looked at the android source code I saw a function called startDTMF() which is exactly what I need, but I couldn't find any API that allows me to access that function...
I then thought of using ToneGenerator and tried to inject the sound to the mic stream, and again I couldn't find a way to achieve this...
Any help is appreciated.
Perhaps the android.media.ToneGenerator class in the SDK can help?
tel:1234,123
this can help.
, generates a 4 sec delay so you may use this at places sometimes...
but still we need to get some thing from sdk lets hope Android guys find something up!

Categories

Resources