Linux 正弦波音频发生器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5109038/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 03:00:43  来源:igfitidea点击:

Linux sine wave audio generator

linuxaudio

提问by smex

I want to use my laptop as sinus generator under linux. But I have not found a program that can generate sound. Can someone tell me the right program or script for it. Thank you.

我想在 linux 下使用我的笔记本电脑作为正弦发生器。但是我还没有找到可以产生声音的程序。有人可以告诉我正确的程序或脚本吗?谢谢你。

PS: I don't want use wine for it. PS2: I found this: "aoss siggen" and "speaker_test". But first ncurses based and second can not generate a continuous signal. May be you know more?

PS:我不想用酒。PS2:我发现了这个:“aoss siggen”和“speaker_test”。但是第一个基于 ncurses,第二个不能生成连续信号。也许你知道更多?

回答by Orbit

Looking around on google I found this software, not sure if it is what you are looking for.

在谷歌上环顾四周,我找到了这个软件,不确定它是否是你要找的。

http://www.softpedia.com/get/Multimedia/Audio/Other-AUDIO-Tools/Multisine.shtml

http://www.softpedia.com/get/Multimedia/Audio/Other-AUDIO-Tools/Multisine.shtml

You could run it under wine.

你可以在 wine 下运行它。

Oh... before the additional note in the original post, sorry.

哦...在原帖的附加说明之前,对不起。

Edit: Woohoo, found one!

编辑:哇哦,找到了一个!

http://www.comp.leeds.ac.uk/jj/linux/siggen.html

http://www.comp.leeds.ac.uk/jj/linux/siggen.html

Apparently the software Audacity can do it also.

显然,软件 Audacity 也可以做到。

Referencing http://ubuntuforums.org/showthread.php?t=308065

参考http://ubuntuforums.org/showthread.php?t=308065

回答by ChrisJ

Today Linux uses the Alsainfrastructure for sound. Check out Alsa documentationand tutorials (for instance this one).

今天,Linux 使用Alsa基础设施来处理声音。查看Alsa 文档和教程(例如这个)。

回答by Throwback1986

If you want to generate sound files under linux, I recommend Sox

如果要在linux下生成声音文件,我推荐Sox

回答by chris

Pulseaudio has a module for generating sine waves:

Pulseaudio 有一个生成正弦波模块

$ pactl load-module module-sine frequency=1000

And to make it stop:

并让它停止:

$ pactl unload-module module-sine