Java: How to convert mp3 to a wav clip without external programs - java

I have a java program that plays .wav files by putting them into Clips. I wanted to know if there was a way (without JLayer or any external libraries) to convert an mp3 file into a wav file that I could put into a Clip? Thanks

Related

unable to convert mp3 files to text format only support .wav files in java

I have created an application but it is only support .wav files to convert audio to text. It is not showing any answers when giving .mp3 files .. I am using sphinx for to convert audio files to text. My question is that why it is not converting to text from .MP3?
As it is specified in the CMU Sphinx documents, only the linear PCM WAV audio format is accept by its speech recognizer. Therefore, any MP3 audio file will be decoded to obtain the linear PCM format, of 16khz sampling rate, 16bit/frame, little-endian and one channel (mono).
This decoding is achieved by the Tarsos Transcoder 1.2. This library uses many Apache utilities, therefore beside the TarsosTranscoder.jar, mp3plugin.jar also has to be included in the project building path.

Does sphinx api only support .wav file as input?

I want to try the sphinx api for the conversion of the .mp3 file to the text format. But I've read it somewhere that it only supports .wav file and since I've changed .mp3 file to .wav file it is giving me proper output. what if i want to do the processing directly on .mp3 file.

Convert mp3 to WAVE in java without external libraries

Is there a way to convert a mp3 audio file into a wav audio file in java without using external libraries?
If you want to tell java "hey, convert an mp3 file", it won't do that, because it isn't made for mp3.
If, however, you are comfortable with using a purely java library, then check out JLayer. I have used it myself and it worked wonderfully.

How to convert mp3 to wav with JMF and mp3plugin.jar?

I have to convert an mp3 data into wav in java.I am using JMF with mp3plugin.jar ,I am able to play the mp3 with it,seems there is a way to convert it into wav along with channel,bitwidth and fps information which I need to process further,but don't know how to do it.Any help is admired

Encrypt and garble audio file using JAVA

I'm currently working on a project to encrypt MP3 audio using JAVA and produce garbled sound from that encrypted MP3 file. So far, I can encrypt the whole MP3 file using DES encryption method. However, this encrypted file is not playable using MP3 player. I know that MP3 file has some structure (header and data, etc), but I have no idea to implement encryption on this file without breaking the whole MP3 structure.
How to make this encrypted MP3 file playable?
Some more info about parsing and mp3 stream in java: JavaLayer is an mp3 decoder that naturally implements stream processing mostly with javazoom.jl.decoder.Bitstream class. It will skip all tag data and give you raw bytes for each frame.
Another library that does some mp3 stream parsing is jaudiotagger, maybe you can scavenge some code from there too.
Both of these libraries are distributed under LGPL, so just be aware of licensing issues.

Categories

Resources