JavaFX支持麦克风音频捕获 [英] JavaFX support for microphone audio capture

查看:481
本文介绍了JavaFX支持麦克风音频捕获的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在评估JavaFX的工作项目,但似乎该平台不支持使用麦克风捕获音频。我的印象是,使用JavaFX,可以访问全部Java。如果您可以使用麦克风和applet进行录制,为什么使用JavaFX无法实现相同的目标?这个限制是否有解决方法?

I am evaluating JavaFX for a project at work, but it appears that the platform does not support capturing audio using a microphone. I was under the impression that with JavaFX, one had access to "all of Java". If you can record using a microphone and an applet, why can't the same be accomplished using JavaFX? Are there workarounds to this limitation?

谢谢。

推荐答案

这里有没有限制 - 你说它可以访问所有Java是对的。假设有一个用于Java的麦克风/声音捕获API,那么你可以从JavaFX代码中调用它。

There's no limitation - you are right in saying that it has access to "all of Java". Assuming that there is a microphone / sound capture API for Java, then you can just "call down" to it from JavaFX code.

JavaFX本质上是一个用于GUI的DSL。如果您已经有一个设计良好的小程序符合您的要求,那么应该没有理由不能用JavaFX替换小程序的视图组件。

JavaFX is essentially a DSL for GUIs. If you already have a well-designed applet which fits your requirement, then there should be no reason why the "view" component of the applet cannot be replaced with JavaFX.

这篇关于JavaFX支持麦克风音频捕获的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆