Question

Anyone knows how to get mp3 Frequency (in Hz) using jaudiotagger library for Java? jaudiotagger site

Was it helpful?

Solution

Untested, but this looks like it could help:

AudioFile f = AudioFileIO.read(file);
String rate = f.getAudioHeader().getSampleRate();

There's also getSampleRateAsNumber() if you prefer an int.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top