I seem to have audio output properly configured, but Mycroft can’t see either my built-in microphone nor a cheap USB microphone that I tested. I ran the audiotest and got the following in return:
[andy@VIXDEVMINI mycroft-core]$ ./start-mycroft.sh audiotest Initializing... Starting audiotest =========================================================== == STARTING TO RECORD, MAKE SOME NOISE! == =========================================================== Traceback (most recent call last): File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/andy/mycroft-core/mycroft/util/audio_test.py", line 102, in <module> main() File "/home/andy/mycroft-core/mycroft/util/audio_test.py", line 89, in main record(args.filename, args.duration) File "/home/andy/mycroft-core/mycroft/util/audio_test.py", line 64, in record with mic as source: File "/home/andy/mycroft-core/mycroft/client/speech/mic.py", line 122, in __enter__ input=True, # stream is an input stream File "/home/andy/mycroft-core/.venv/lib/python3.7/site-packages/pyaudio.py", line 750, in open stream = Stream(self, *args, **kwargs) File "/home/andy/mycroft-core/.venv/lib/python3.7/site-packages/pyaudio.py", line 441, in __init__ self._stream = pa.open(**arguments) OSError: [Errno -9997] Invalid sample rate
After I commented out auto-suspend within my pulse configuration, the Mycroft audiotest began complaining that there was no valid input device - however, in the alsa mixer panel GUI, the GUI representation of audio input reflects the sound in front of the microphone accurately - and the speakers work, too.
I then discovered, at the end of default.pa, lines for setting default sinks and sources that are commented out by default. I uncommented them, but the audiotest returned the same result.
For reference, pactl info shows the default sink and source correctly.
Is there an extra step or two on Manjaro? It all seems to work apart from audio-in.