I was trying to make a program that would take a recording from the microphone, and overlay it on an existing wav file. How would this be possible?
If you don't have to save the file as one file and just want to play it together, you can simply create 2 MediaPlayers and play them at the same time.
If you want to actually create a new file, you would need to read about WAV file structure and go from there.
Related
I have .srt files on my android device.
But I don't have any program that allows me to be able to open it to be able to see what the contents of them are.
So I would like to create a simple program that allows me to be able to open the file as if it were a .txt in order to be able to read it.
The problem is how do I specify that that type of .srt extension can be opened by that program.
There is something in the android manifest that allows me to do this.
What I want to do is this:
I have my .srt files in my archive
When I click on one of these files, it must open the program to be able to read it with the file open
I am searching for an easy way to use one .txt file created in the Main_Activity to be updated in another activity.
Basically i want to be able to use one txt file throughout multiple activities.
I just need basic coding principals for doing this.
Notes:
I have already created the .txt file in the Main_Activity,
Now I have a second activity that should then be able to update the string in the .txt file created in the Main_Activity.
I'm trying to pragmatically create a video from an audio file (probably WAV). The video will be nothing fancy, just a few lines of text on a black background. It'll last the entirety of the audio clip and then save it to a file (ideally MP4).
My problem is that I'm not entirely sure where to start. Like, I've read the tutorials and whatnot but I still don't know where to start. I assume you need to create a reader, a writer, and a tool to place in the chain to put text on the screen. However, I don't know if you can just create images and Xuggler will automatically realize that it's dealing with a video file, not just an audio file. Also, I'm not sure how to load in an audio file in Xuggler.
Thank you for any help you're able to provide.
i'm trying to make a java sound visualizer, but I have absolutely no idea on how to get the bytes from the audio extracted, immediately after they are procressed in real-time. I could synchronize the program with an wav file, but that is not what I want to do, I want to generate the sound with the program, then play it, without saving it anywhere.
Thanks for the help!
This article can help you understand the structure of sound files: Build an Audio Waveform Display
Is it possible to merge equally sized mp3 format files, and then retrieve, modify each unit file and add new ones in Java? Is there any tool or programming solution?
MP3 format does not allow clean merging of two files to create a new one without re-encoding. The reason is that first and last frame of the file contain some junk information that has to be discarded. You still can merge the files, like here, but it will not be gapless and accurate. Strip id3v1 tag from the first file (last 120 bytes, if it exists), id3v2 from the second file (see this link to see how to find and get size of id3v2), and then merge the files. Things could get complicated if there are LAME frames. But most player should be able to handle these files.
There is nothing built in to Android to achieve that, because there is no MP3 encoder in the SDK. You'll need an MP3 codec library.
See this answer.
Hope the below link helps you to get what you are looking for
Audacity
http://audacity.sourceforge.net/