jaudiotagger get mp3 frequency
-
23-02-2021 - |
Question
Anyone knows how to get mp3 Frequency (in Hz) using jaudiotagger library for Java? jaudiotagger site
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