does javafx has built in audio capture?

2019-08-05 08:57发布

问题:

I know there is a duplicate question right here, but it's obsolete, so does javafx support audio capture.

Does it have any audio capturing API or interfaces, i know of AudioClip in javafx.scene.media. but it's only for playback.

回答1:

No, JavaFX 8 does not have an audio capture API.

There is an existing feature request (currently scheduled for implementation in Java 9):

  • JDK-8090438 Camera and Microphone

For now, you can use the existing javax.sound API (which will probably work just fine from a JavaFX application), as suggested in Robin Jonsson's coment.