Convert MP3 to PCM in Java


I want to convert MP3 file to PCM in Java.

How to do that?


<ul><li>Get the <a href="https://drive.google.com/file/d/0B5B9wDXIGw9lRmpSbEUtenljd1k/view?usp=sharing" rel="nofollow">mp3plugin.jar</a> of the JMF.</li> <li>Add it to the run-time class-path of the app. to provide a decoder SPI for MP3.</li> <li>Get an <a href="http://docs.oracle.com/javase/8/docs/api/javax/sound/sampled/AudioInputStream.html" rel="nofollow">AudioInputStream</a> for the MP3 from the <a href="http://docs.oracle.com/javase/8/docs/api/javax/sound/sampled/AudioSystem.html" rel="nofollow">AudioSystem</a> of Java Sound.</li> <li>Convert it to PCM using <a href="http://docs.oracle.com/javase/8/docs/api/javax/sound/sampled/AudioSystem.html#getAudioInputStream-javax.sound.sampled.AudioFormat-javax.sound.sampled.AudioInputStream-" rel="nofollow">getAudioInputStream(AudioFormat,AudioInputStream)</a>.</li> </ul>


  • A simple way of embedding a video in my Swing GUI
  • How to extract audio from a video file and make it as JavaSound AudioInputStream?
  • SelectSingleNode returns null even with namespace managing
  • Lib/API for create small gif from video?
  • How to crop a mp3 in ASP.NET + C#?
  • integrate POCO library in android ndk
  • “mvn clean generate-source” could not resolve dependencies
  • In Java, how can I construct a File from a resource?
  • Android Studio Can't Find tools.jar
  • Sonar maven jacoco code coverage for Multimodule project
  • Conversion from string “a” to type 'Boolean' is not valid
  • Access variable of ScriptContext using Nashorn JavaScript Engine (Java 8)
  • Marklogic : Query response time is very high
  • Parsing a CSV string while ignoring commas inside the individual columns
  • Jetty 9 HashLoginService
  • Problem deserializing objects from cache on MyBatis 3/Java
  • MongoDb aggregation
  • azure media services - The request body is too large and exceeds the maximum permissible limit
  • Unity3D & Android: Difference between “UnityMain” and “main” threads?
  • How to create a file in java without a extension
  • OpenGL ES texture problem, 4 duplicate columns and horizontal lines (Android)
  • Cross-Platform Protobuf Serialization
  • Does CUDA 5 support STL or THRUST inside the device code?
  • Perl system calls when running as another user using sudo
  • SVN: Merging two branches together
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • Arrays break string types in Julia
  • How to format a variable of double type
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Angular 2 constructor injection vs direct access
  • coudnt use logback because of log4j
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Java static initializers and reflection
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • Android Google Maps API OnLocationChanged only called once
  • How can I remove ASP.NET Designer.cs files?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • JaxB to read class hierarchy
  • UserPrincipal.Current returns apppool on IIS
  • Converting MP3 duration time