jaudiotagger get mp3 frequency

635 views Asked by At

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

1

There are 1 answers

0
vanza On BEST ANSWER

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.