Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都知道如何使用 Java 的 jaudiotagger 库获取 mp3 频率(以 Hz 为单位)?jaudiotagger 网站
未经测试,但这看起来可能会有所帮助:
AudioFile f = AudioFileIO.read(file); String rate = f.getAudioHeader().getSampleRate();
getSampleRateAsNumber()如果您更喜欢int,还有。
getSampleRateAsNumber()