难道java的有内置的音频_synthesis_库? [英] Does java have built in libraries for audio _synthesis_?

查看:85
本文介绍了难道java的有内置的音频_synthesis_库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请注意:我不想要。读取音频文件foo.bar并播放

Note: I do NOT want to "read audio file foo.bar and play it."

我想以编程方式生成动态的音频文件并播放它们。

I want to programmatically generate audio files on the fly and play them.

Java的是否已经内置该库,或这是否落入依赖于系统的库?

Does Java have built in libraries for this, or does this fall into the system-dependent libraries?

谢谢!

推荐答案

此Sun论坛帖子有一些有趣的code产生罪恶的色调。此外,由于该WAV文件格式不是太复杂,你可以创建一个表重新presenting所需的波形,然后将它写入文件。有几个例子各处,例如原始音频转换器和的如何写一个WAV文件

This Sun forum post has some interesting code for generating sin tones. Also, given that the WAV file format is not overly complicated, you could create a table representing the desired waveform and then write it to a file. There are a few examples around, e.g. a raw audio converter and how to write a wav file.

这篇关于难道java的有内置的音频_synthesis_库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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