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.
Related
I am creating an app, which is based on music composition. In this App, a .mp3 song is playing in the background and the user can add their voice with this music and save the recorded music file. I am using media recorder and media player for recording and playing, but my recorded file is not suitable for my app.
The android.media.MediaPlayer class is used to control the audio or video files.
MediaRecorder class can be used to record audio and video files.
You can set output format like this...here 3gp example i am giving you
Mediarecorder recorder;
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
I'm trying to play two audio simultaneously, one of the audio plays background music, while other player plays an audio , both audios are in raw folder. Please any pointer are much appreciated .
Things which i have tried,
*) Create two media player and play the audios in separate media player instances.
*) Playing in separate thread(handler/asynchtask) ,I faced issues when i'm trying to change/cancel/stop the audio.
*) Soundpool is not suitable since the audio are of large size.
I have mute video file and separate audio file for same video. How can I play video with separate audio in android? I have tried using VideoView but unable to play audio separately. can anyone help in this!!
Before you start everything running, first you prepare both video and audio. When both of them are prepared only after that you can push the Start button.. and they should be synchronized ( if you recorded the audio part at the same time you started the video part)
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?
I have made a Android streaming application that plays media from online URL's. For playing the media, I am using the
standard MediaPlayer class for playing media.
As per the Android documentation, it supports RTSP protocol for audio & video playback
http://developer.android.com/guide/appendix/media-formats.html
But when I am trying to play media from a RTSP URL, it gets connected but I am not able to hear any media
Following is one of those RTSP URL -
rtsp://sfera.live24.gr/sfera4132
Does anybody media have an idea of playing RTSP URL's through the Android MediaPlayer
Thanks
That link you provided has 3 audio tracks, with the first and last tracks appearing to be silent and don't contain any valid audio.
The middle track has audio (as per VLC). I don't know how Android deals with multiple audio tracks. I imagine you may get better results if you use links that only contain 1 audio and 1 video track at most.
I expect for an rtsp stream with multiple audio tracks, android is only going to play the first one as there is no user interface to select a specific audio stream, hence why you aren't hearing any audio.
If this is a stream from your own server, to hear the audio you should adjust the SDP file the valid audio track first. If this is not from your server, I don't know what you're options are.