I am developing app, in which I want to :
Mix two audio files ( most probably .wav files ). Mixing here means, output file will sound like two audio files are being played at same time and not concat.
Adding audio to video.
Thanks in advance.
Related
I have used Rindroid to generate waveform for single audio file. Now I have to display the same audio track for more than one audio files which are selected from the device. How can I use this ringdroid to generate same waveform for multiple audios files.
Atleast is there any possiblity to maintain multiple player instances..?
Any help would be appreciated.
I want to play multiple audio files simultaneously in sync. I , file on the SD-Card, or a file in a specific folder). I want to be able to put a delay on the files and adjust the play rate.
I have looked MediaPlayer, MediaPlayer seems like the right path, but they are not synchronous multiple audio into single audio.
I'm developing an Android App that records screen video and audio.
I recorded these 2 files : mp3 audio file and mp4 video file(no sound).
Now I want to mix them and create a new mp4 video file(with sound).
From Android 4.3, Google suggests using the MediaMuxer class to mix stream audio and video. I have tried many times without success.
Any solution to resolve my issue with MediaMuxer API from Google?
Any help will be greatly appreciated.
MediaMuxer does not transcode.
If you write out an MPEG4 file, it will expect the video file to be MPEG4/AAC and the audio file to be an AAC file (m4a) as well.
Once you feed it with an m4a, muxing will succeed.
This is a full sample source code to merge wav audio file to mp4 video file :
https://github.com/tqnst/MP4ParserMergeAudioVideo
I was able to play both the audio(mp3, wav, etc) and midi music(.mid) at a time using SoundPool Class. But how can i save the output(mixer of audio file + midi music) into an audio file(mp3, wav, etc.,).
Please suggest me best approach to achieve this.
Thanks in advance.
I need to complete an app on an Android phone that plays back four sound files when four separate buttons are pressed.
The trouble I have is that the sound files are .wav files. They are also stereo files. I need to play them on the Android phone uncompressed and in stereo.
My understanding is that .wav can not be played on Android phones as it is uncompressed and that I will need to convert the file format but I have not had any luck that way.
Any ideas?
Thanks!!
Android certainly can open/play WAV files.
Use android.media.MediaPlayer to play them, as you'd do for mp3 or other format.
See the following list for a complete reference of supported media formats: http://developer.android.com/guide/appendix/media-formats.html
Wave is supported, PCM/WAVE 8- and 16-bit linear PCM (rates up to limit of hardware) WAVE (.wav)
From Android 4.0.1 Android supports Wave (.wav) formats, you can access 8bit or 16 bit audio files in .wav format