I would like to take the music files from my phone (mp3 mostly) and convert them to raw data that FFT can be done on. Is there anyway to do this by using the android/java framework or do I need to integrate something like LAME to decode the mp3?
Your going to need LAME to decode this to a file, you could have the Android system decode it for you but it would just go to the speakers unless you used kernel hacks to allow sending it direct to file.
Related
I have an audio file in WAV format. I suppose to decode the binary data encoded in the file. The data is encoded using Audio Frequency Shift-Keying (AFSK).
The technology is used for communication systems such asĀ garage door opener.
I am beginner in that, so I am not sure which library should I use to decode the file which is encoded using AFSK.
Is there any library available for Android?
You might want to try android-fskmodem or any other FSK library.
I declared the pathname of my mp3 audio file in my code as var pathname: String = "/..../file.mp3" (It's saved correctly, I can listen to it).
Can I convert that file to an Opus audio file? Thank you very much
I don't know about that specific error, but the Supported Media Formats page says Opus is only supported in Android 5.0+, and then only in the matroska container.
Make sure you're testing on newer Android, and you may need to demux manually to feed raw packets to the decoder.
If you need Opus support everywhere you can include the C library in your app and call it directly over JNI.
1.What are the benefits if using oggvorbis over mp3 in android?
2.if we use ogg vorbis,is it possible to change its header(xor or encryption) and make it unplayble?
regards,
hitendra gohil
The problem is more specific to encryption rather than using ogg or mp3, I had a similar issue where client wants that the downloaded images can only be viewed through his apps, what I applied is I cut the 32 bytes from the beginning of every file and write it database and when I want the resource to be used I pick that 32 bytes and the original file to make usable file at some hidden location.
I hope the point is clear and might help.
There seem to be a lot of questions regarding the inverse wav to mp3 conversion, but none to go the other way. My situation is that I can use steganography to embed data in wav files. I can convert these to ogg and back (the steganography is format independent, and can survive format conversion). What I want to do now is build in AudioBoo integration. Uploading to AudioBoo is not a problem, retrieving the files in mp3 format is not a problem, but converting those mp3 files back to wav to perform the steg. extraction is. Does anyone know where I should start?
Check out JLayer. It should run on Android. Beware, some of the calls are synchronized. If this doesn't work, tweak the source code or extract the converter modules from the entire source, since all you need is the mp3 to wav converter, not the mp3 player.
I have a requirement of playing a Asx stream through an Android application
I have read the Android documentation, and they don't seem to support Windows Media streams
Is there any workaround possible? Has anyone did that before? If yes, is there some source code available? Or a library that implements this
Thanks
Are you worried about asx file only or any possible outcome after this?
The asx file can be readable as simple string, read the file using byte array and you can get one or many urls that can be
pls file
m3u file
mp3 url
wma url
We don't have to worry about 1,2 and 3. 1 and 2 can have different parsing logics but at the end they will give 3 [mp3 url] and an mp3 url can be easily handled by MediaPlayer api in android . but 4 is also difficult work to be done.