我无法morse
在 GUI 和非 GUI 终端中使用该实用程序:
# echo word | morse
Could not initialize audio: Connection refused
Can't access speaker.
为什么会出现此错误以及如何morse
与 alsamixer 一起使用?
从/usr/share/doc/morse/README
:
Currently supported devices:
X11: The X11 window system. (Warning: not all X11 implementations handle
duration and frequency of beeps properly!)
Linux: The IBM PC console speaker.
OSS: Open Sound System /dev/dsp device. Also works with the newer
ALSA Linux sound system using the legacy OSS device.
PA: PulseAudio using the pulse-simple client API.
ALSA: ALSA Linux sound system /dev/snd/* device.
答案1
显然是在呼唤pulseaudio
。启动pulseaudio
或使用morseALSA