![无法使用莫尔斯电码:无法初始化音频](https://linux22.com/image/101938/%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%E8%8E%AB%E5%B0%94%E6%96%AF%E7%94%B5%E7%A0%81%EF%BC%9A%E6%97%A0%E6%B3%95%E5%88%9D%E5%A7%8B%E5%8C%96%E9%9F%B3%E9%A2%91.png)
我无法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