如何捕获在Java中的音频数据 [英] How to capture Audio data in Java
问题描述
我要访问我的麦克风与Java的记录音频数据。我会怎么做呢?
I want to access the audio data that my microphone is recording with Java. How would I do that?
我的目标是保存记录的音频数据并同时将其发挥到了用户。
My goal is to save the audio data that is recorded and simultaneously play it to the user.
推荐答案
如果你不需要任何的JMF的附加功能,我会避免它,因为发展已经停止(最后一个版本是2004年),它具有兼容性与Java 6的问题,具有64位的VM的非常有限的功能,并以安装为一个单独的扩展库
If you don't need any of the additional functionality in JMF, I would avoid it since development has ceased (last version is from 2004), it has compatibility issues with Java 6, has a very restricted functionality in 64-bit VMs and has to installed as a separate extension library.
音频录制,回放和一些简单的媒体格式是由JavaSound(javax.sound),这是标准的Java API的一部分直接支持。
Audio recording, playback and a few simple media formats are supported directly by JavaSound (javax.sound), which is part of the standard Java API.
这篇关于如何捕获在Java中的音频数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!