Hello, i’m trying to use Rhasspy with my seeedvoice ReSpeaker 4 mics array.
I’m unable to configure Audio Recording.
With pyaudio i got this :
rhasspy-microphone-pyaudio-hermes: error: argument --device-index: invalid int value: ‘default:CARD=seeed4micvoicec’
Or if i use default setting i got :
EBUG:2020-10-12 21:05:18,793] rhasspymicrophone_pyaudio_hermes: Connected to MQTT broker
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[DEBUG:2020-10-12 21:05:18,794] rhasspymicrophone_pyaudio_hermes: Subscribed to hermes/asr/stopListening
[DEBUG:2020-10-12 21:05:18,795] rhasspymicrophone_pyaudio_hermes: Subscribed to rhasspy/audioServer/getDevices
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
[DEBUG:2020-10-12 21:05:18,796] rhasspymicrophone_pyaudio_hermes: Subscribed to hermes/asr/startListening
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[DEBUG:2020-10-12 21:05:18,798] rhasspymicrophone_pyaudio_hermes: Subscribed to hermes/audioServer/toggleSummaryOff
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
[DEBUG:2020-10-12 21:05:18,799] rhasspymicrophone_pyaudio_hermes: Subscribed to hermes/audioServer/toggleSummaryOn
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[ERROR:2020-10-12 21:05:18,833] rhasspymicrophone_pyaudio_hermes: record
Traceback (most recent call last):
File “/usr/lib/rhasspy/rhasspy-microphone-pyaudio-hermes/rhasspymicrophone_pyaudio_hermes/init.py”, line 111, in record
input=True,
File “/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pyaudio.py”, line 750, in open
stream = Stream(self, *args, **kwargs)
File “/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pyaudio.py”, line 441, in init
self._stream = pa.open(**arguments)
OSError: [Errno -9996] Invalid input device (no default output device)
[DEBUG:2020-10-12 21:05:18,839] rhasspymicrophone_pyaudio_hermes: -> AudioRecordError(error=’[Errno -9996] Invalid input device (no default output device)’, site_id=‘salon’, context=‘Device index: None’, session_id=None)
[DEBUG:2020-10-12 21:05:18,840] rhasspymicrophone_pyaudio_hermes: Publishing 145 bytes(s) to hermes/error/audioServer/record
Or with arecord i got this :
The arecord: main:828: audio open error: Device or resource busy
to start this module without error is to use arecord with "Pulse audio server (pulse) " settings as device
But I still got an error:
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
arecord: main:828: audio open error: Connection refused
I think the only way to use respeaker is to use “pulse audio server (pulse)” in decice setting.
And
I think it is a permissions problem betwen docker and pulse-access group
So i see to have access to alsa we use this argument : -decive /dev/snd:/dev/snd
It should be something
like this fort pulse audio ?
Thank you !