无法使用莫尔斯电码:无法初始化音频

无法使用莫尔斯电码:无法初始化音频

我无法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

相关内容