In a chat session, whenever I want the other person to hear a pre-recorded voice, I need to play it on my speakers and use my microphone to capture it. How can I play MP3 files into the microphone input so that whenever I do a voice chat I could play the MP3 file in such a way that I am speaking through the microphone itself?
Related
I'd like to create an App that plays an audio file/stream to the microphone to allow a video communication App to capture the sound as input.
To Play the Audio I'm currently using the AudioTrack class.
The closest question is this one, but still unanswered.
How can I play an audio file as a microphone input into an Android app? I want the Android app to think this audio is coming from the mic.
Let say I have a wav file local, it is kind of beat music, and then I play this file using ExoPlayer, I also sing a song at the same time. Is there any way to record audio at that time?
Then the recorded audio will include my voice and the beat music.
Is this possible to play a pre-recorded sound in speaker or mic during a call.. so that other party could hear it?
Please refer to this first before reading through. The modem processor directly feeds from the mic and since there is not wiring between the app and modem processor, IMHO you cannot route the pre-recorded audio to the other end.
The other party can hear only what the microphone picks up. So, if you play a pre-recorded audio file while in a call on the speaker, and it is loud enough, the mic will pick up the audio and it will be heard at the other end. Not sure if echo cancellation will have an "adverse" effect in this case by eliminating the audio from the speaker.
Is there anyway in android to loop a recorded audio through microphone. I mean that instead of speaking in microphone, i should be able to send a recorded audio from code into it.