I did the offline_voice_assistant.py and next are the results.
Please tel me how to correct them.
Before I did correct alsa.conf by yore suggestion
{ @func contact strings [ {@func datadir} “/alsa.conf.d/” ] } “/etc/aound.conf” " ~.asoundc"
And results are next
pi@raspberrypi:~/git/respeaker_python_library/examples
$ python3 offline_voice_assistant.py
- Results
===next are command line error’s @4/13 /2021
Expression ‘ret’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1736
Expression ‘AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1904
Expression ‘PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2171
Expression ‘PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2840
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python3.7/threading.py”, line 917, in _bootstrap_inner
self.run()
File “/usr/lib/python3.7/threading.py”, line 865, in run
self._target(*self._args, **self._kwargs)
File “offline_voice_assistant.py”, line 30, in task
print (Microphone(quit_event=quit_event) ) # 4/5
File “/usr/local/lib/python3.7/dist-packages/respeaker/microphone.py”, line 107, in init
input_device_index=self.device_index,
File “/home/pi/.local/lib/python3.7/site-packages/pyaudio.py”, line 752, in open
stream = Stream(self, *args, **kwargs)
File “/home/pi/.local/lib/python3.7/site-packages/pyaudio.py”, line 443, in init
self._stream = pa.open(**arguments)
OSError: [Errno -9985] Device unavailable