Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top