audio-processing

How do I use audio sample data from Java Sound?

左心房为你撑大大i 提交于 2019-11-26 15:21:06
This question is usually asked as a part of another question but it turns out that the answer is long. I've decided to answer it here so I can link to it elsewhere. Although I'm not aware of a way that Java can produce audio samples for us at this time, if that changes in the future, this can be a place for it. I know that JavaFX has some stuff like this, for example AudioSpectrumListener , but still not a way to access samples directly. I'm using javax.sound.sampled for playback and/or recording but I'd like to do something with the audio. Perhaps I'd like to display it visually or process it

How do I use audio sample data from Java Sound?

六眼飞鱼酱① 提交于 2019-11-26 04:22:03
问题 This question is usually asked as a part of another question but it turns out that the answer is long. I\'ve decided to answer it here so I can link to it elsewhere. Although I\'m not aware of a way that Java can produce audio samples for us at this time, if that changes in the future, this can be a place for it. I know that JavaFX has some stuff like this, for example AudioSpectrumListener, but still not a way to access samples directly. I\'m using javax.sound.sampled for playback and/or