No sound on RPi

I’m trying to get Mycroft running alongside some other programs on my Pi, so I’ve gone for the general linux installation (i.e. building from git repo) rather than the Picroft image.

All seems to work fine through the command line, but I don’t get any audio input or output.

Running mycroft-mic-test gives me the following error:

Traceback (most recent call last):
File “/usr/lib/python3.5/”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.5/”, line 85, in _run_code
exec(code, run_globals)
File “/home/pi/mycroft-core/mycroft/util/”, line 102, in
File “/home/pi/mycroft-core/mycroft/util/”, line 96, in main
status = play_wav(args.filename).wait()
File “/home/pi/mycroft-core/mycroft/util/”, line 98, in play_wav
return subprocess.Popen(play_wav_cmd)
File “/usr/lib/python3.5/”, line 676, in init
restore_signals, start_new_session)
File “/usr/lib/python3.5/”, line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: ‘paplay’

Note that I am attempting to just use Alsa rather than PulseAudio, which has caused me a lot of problems in the past. I believe this is the source of the issue, but I’m wondering (and very much hoping) that there is some way to run Mycroft without PA.

Do you have pulseaudio installed?

No, I don’t have any trace of PA on the system. Is there really no way to run Mycroft without it?

I’ve had difficulty before in getting it to work with my DAC.

Is there any inherent reason why Mycroft relies on PA? Forgive my lack of understanding, but other programs I use can play sounds perfectly fine without worrying about the underlying audio tools.

There is some work being done with @j1nx to determine the necessity of PA. Read here.

1 Like