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.
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?
ffmpeg
ffmpeg can do it, as usual.
Create a 5 seconds mono 1000Hz sinusoidal
out.wav
sound file:Stereo instead:
The file will be 2x as large, and
ffprobe
will say it has2 channels
instead of1 channel
.Play the audio for 5 seconds without creating a file:
Play forever until you go mad:
Documentation:
The other section sunder Audio sources document other useful sound generation algorithms in addition to
sine
, e.g.:anoisesrc
: several noisesaevalsrc
takes arbitrary mathematical expressions!Bibliography:
Tested in Ubuntu 18.04, ffmpeg 3.4.6.
Minimal C audio generation example without extra libraries
Just for fun: How is audio represented with numbers in computers?
If you want to generate sound files under linux, I recommend Sox
Pulseaudio has a module for generating sine waves:
And to make it stop:
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
You could run it under 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
Apparently the software Audacity can do it also.
Referencing http://ubuntuforums.org/showthread.php?t=308065
Today Linux uses the Alsa infrastructure for sound. Check out Alsa documentation and tutorials (for instance this one).