Don't understand how to be heard by Rhasspy

Yes, just like you tried earlier.

ok it start!

so now, what should I do to show you the log for the issue I have with recording?

docker logs -f rhasspy should show you all logs from the Rhasspy container. Try your recording and have a look at possible error messages or warnings appearing in the log output.

I don’t close the window so I see all thing… I try to record and it said that :

[ERROR:2020-08-23 13:51:31,894] rhasspyserver_hermes:
Traceback (most recent call last):
File “/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py”, line 1821, in full_dispatch_request
result = await self.dispatch_request(request_context)
File “/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py”, line 1869, in dispatch_request
return await handler(**request_.view_args)
File “/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/main.py”, line 827, in api_listen_for_command
handle_captured(), messages, message_types
File “/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/init.py”, line 959, in publish_wait
result_awaitable, timeout=timeout_seconds
File “/usr/lib/python3.7/asyncio/tasks.py”, line 449, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

Nothing else standing out in the logs before?

a lot of thing before what i put, you want all log?

pi@raspberrypi:~ $ docker run -it -p 12101:12101 \

  --name rhasspy \
  --restart unless-stopped \
  -v "$HOME/.config/rhasspy/profiles:/profiles" \
  -v "/etc/localtime:/etc/localtime:ro" \
  --device /dev/snd:/dev/snd \
  rhasspy/rhasspy \
  --user-profiles /profiles \
  --profile fr

Starting up…
Using virtual environment at /usr/lib/rhasspy/.venv
DEBUG:rhasspysupervisor:Namespace(debug=True, docker_compose=’’, local_mqtt_port=12183, profile=‘fr’, supervisord_conf=‘supervisord.conf’, system_profiles=None, user_profiles=PosixPath(’/profiles’))
DEBUG:rhasspysupervisor:Loading profile fr (user=/profiles, system=None)
DEBUG:rhasspyprofile.profile:Loading /usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/fr/profile.json
DEBUG:rhasspyprofile.profile:Loading /profiles/fr/profile.json
DEBUG:rhasspysupervisor:Generating supervisord conf
DEBUG:rhasspysupervisor:Wake word disabled (system=dummy)
DEBUG:rhasspysupervisor:Intent handling disabled (system=dummy)
DEBUG:rhasspysupervisor:Wrote /profiles/fr/supervisord.conf
Starting services…
Using virtual environment at /usr/lib/rhasspy/.venv
Using virtual environment at /usr/lib/rhasspy/.venv
2020-08-23 13:49:24,375 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2020-08-23 13:49:24,380 INFO supervisord started with pid 161
2020-08-23 13:49:25,385 INFO spawned: ‘mqtt’ with pid 177
2020-08-23 13:49:25,391 INFO spawned: ‘dialogue’ with pid 178
2020-08-23 13:49:25,401 INFO spawned: ‘speech_to_text’ with pid 179
2020-08-23 13:49:25,411 INFO spawned: ‘speakers’ with pid 180
2020-08-23 13:49:25,426 INFO spawned: ‘intent_recognition’ with pid 182
2020-08-23 13:49:25,448 INFO spawned: ‘text_to_speech’ with pid 184
2020-08-23 13:49:25,461 INFO spawned: ‘microphone’ with pid 188
1598183365: mosquitto version 1.6.6 starting
1598183365: Using default config.
1598183365: Opening ipv4 listen socket on port 12183.
1598183365: Opening ipv6 listen socket on port 12183.
2020-08-23 13:49:26,467 INFO success: mqtt entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-08-23 13:49:26,467 INFO success: dialogue entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-08-23 13:49:26,468 INFO success: speech_to_text entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-08-23 13:49:26,469 INFO success: speakers entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-08-23 13:49:26,469 INFO success: intent_recognition entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-08-23 13:49:26,470 INFO success: text_to_speech entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-08-23 13:49:26,470 INFO success: microphone entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[DEBUG:2020-08-23 13:49:26,476] rhasspyspeakers_cli_hermes: Namespace(debug=True, host=‘localhost’, list_command=‘aplay -L’, log_format=’[%(levelname)s:%(asctime)s] %(name)s: %(message)s’, password=None, play_command=‘aplay -q -t wav’, port=12183, site_id=[‘default’], tls=False, tls_ca_certs=None, tls_cert_reqs=‘CERT_REQUIRED’, tls_certfile=None, tls_ciphers=None, tls_keyfile=None, tls_version=None, username=None)
[DEBUG:2020-08-23 13:49:26,494] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:26,504] rhasspyspeakers_cli_hermes: Connecting to localhost:12183
1598183366: New connection from 127.0.0.1 on port 12183.
1598183366: New client connected from 127.0.0.1 as auto-4CE00AAA-A011-F30B-15DB-8CB11D881E59 (p2, c1, k60).
[DEBUG:2020-08-23 13:49:26,577] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:26,580] rhasspyspeakers_cli_hermes: Connected to MQTT broker
[DEBUG:2020-08-23 13:49:26,581] rhasspyspeakers_cli_hermes: Subscribed to rhasspy/audioServer/getDevices
[DEBUG:2020-08-23 13:49:26,583] rhasspyspeakers_cli_hermes: Subscribed to hermes/audioServer/toggleOff
[DEBUG:2020-08-23 13:49:26,584] rhasspyspeakers_cli_hermes: Subscribed to hermes/audioServer/default/playBytes/#
[DEBUG:2020-08-23 13:49:26,586] rhasspyspeakers_cli_hermes: Subscribed to hermes/audioServer/toggleOn
[DEBUG:2020-08-23 13:49:27,024] rhasspytts_cli_hermes: Namespace(debug=True, host=‘localhost’, language=‘fr’, log_format=’[%(levelname)s:%(asctime)s] %(name)s: %(message)s’, password=None, play_command=None, port=12183, site_id=[‘default’], temporary_wav=False, text_on_stdin=False, tls=False, tls_ca_certs=None, tls_cert_reqs=‘CERT_REQUIRED’, tls_certfile=None, tls_ciphers=None, tls_keyfile=None, tls_version=None, tts_command=‘espeak --stdout -v {lang}’, username=None, voices_command=“espeak --voices | tail -n +2 | awk ‘{ print $2,$4 }’”)
[DEBUG:2020-08-23 13:49:27,042] rhasspydialogue_hermes: Namespace(debug=True, host=‘localhost’, log_format=’[%(levelname)s:%(asctime)s] %(name)s: %(message)s’, password=None, port=12183, session_timeout=30.0, site_id=[‘default’], sound=[[‘wake’, ‘/usr/lib/rhasspy/etc/wav/beep_hi.wav’], [‘recorded’, ‘/usr/lib/rhasspy/etc/wav/beep_lo.wav’], [‘error’, ‘/usr/lib/rhasspy/etc/wav/beep_error.wav’]], tls=False, tls_ca_certs=None, tls_cert_reqs=‘CERT_REQUIRED’, tls_certfile=None, tls_ciphers=None, tls_keyfile=None, tls_version=None, username=None, wakeword_id=None)
[DEBUG:2020-08-23 13:49:27,044] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:27,049] rhasspytts_cli_hermes: Connecting to localhost:12183
[DEBUG:2020-08-23 13:49:27,052] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:27,053] rhasspydialogue_hermes: Connecting to localhost:12183
1598183367: New connection from 127.0.0.1 on port 12183.
1598183367: New client connected from 127.0.0.1 as auto-D3B350B8-1918-D45E-233C-BEB0E89630E5 (p2, c1, k60).
[DEBUG:2020-08-23 13:49:27,095] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:27,097] rhasspytts_cli_hermes: Connected to MQTT broker
1598183367: New connection from 127.0.0.1 on port 12183.
1598183367: New client connected from 127.0.0.1 as auto-32FF2AAF-B366-75C8-65FA-E0501DFD2380 (p2, c1, k60).
[DEBUG:2020-08-23 13:49:27,097] rhasspytts_cli_hermes: Subscribed to rhasspy/tts/getVoices
[DEBUG:2020-08-23 13:49:27,100] rhasspytts_cli_hermes: Subscribed to hermes/audioServer/default/playFinished
[DEBUG:2020-08-23 13:49:27,104] rhasspytts_cli_hermes: Subscribed to hermes/tts/say
[DEBUG:2020-08-23 13:49:27,115] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:27,117] rhasspydialogue_hermes: Connected to MQTT broker
[DEBUG:2020-08-23 13:49:27,117] rhasspydialogue_hermes: Subscribed to hermes/dialogueManager/startSession
[DEBUG:2020-08-23 13:49:27,118] rhasspydialogue_hermes: Subscribed to hermes/hotword/+/detected
[DEBUG:2020-08-23 13:49:27,119] rhasspydialogue_hermes: Subscribed to hermes/tts/sayFinished
[DEBUG:2020-08-23 13:49:27,120] rhasspydialogue_hermes: Subscribed to hermes/intent/#
[DEBUG:2020-08-23 13:49:27,121] rhasspydialogue_hermes: Subscribed to hermes/dialogueManager/configure
[DEBUG:2020-08-23 13:49:27,122] rhasspydialogue_hermes: Subscribed to hermes/dialogueManager/continueSession
[DEBUG:2020-08-23 13:49:27,122] rhasspydialogue_hermes: Subscribed to hermes/audioServer/default/playFinished
[DEBUG:2020-08-23 13:49:27,123] rhasspydialogue_hermes: Subscribed to hermes/dialogueManager/endSession
[DEBUG:2020-08-23 13:49:27,123] rhasspydialogue_hermes: Subscribed to hermes/asr/textCaptured
[DEBUG:2020-08-23 13:49:27,124] rhasspydialogue_hermes: Subscribed to hermes/nlu/intentNotRecognized
[DEBUG:2020-08-23 13:49:27,201] rhasspyserver_hermes: Namespace(certfile=None, host=‘0.0.0.0’, keyfile=None, local_mqtt_port=12183, log_format=’[%(levelname)s:%(asctime)s] %(name)s: %(message)s’, log_level=‘DEBUG’, mqtt_host=None, mqtt_password=None, mqtt_port=None, mqtt_username=None, port=12101, profile=‘fr’, set=[], system_profiles=None, user_profiles=’/profiles’, web_dir=’/usr/lib/rhasspy/rhasspy-server-hermes/web’)
[DEBUG:2020-08-23 13:49:27,340] rhasspymicrophone_pyaudio_hermes: Namespace(channels=1, debug=True, device_index=0, host=‘localhost’, list_devices=False, log_format=’[%(levelname)s:%(asctime)s] %(name)s: %(message)s’, output_site_id=None, password=None, port=12183, sample_rate=16000, sample_width=2, site_id=[‘default’], tls=False, tls_ca_certs=None, tls_cert_reqs=‘CERT_REQUIRED’, tls_certfile=None, tls_ciphers=None, tls_keyfile=None, tls_version=None, udp_audio_host=‘127.0.0.1’, udp_audio_port=None, username=None)
[DEBUG:2020-08-23 13:49:27,344] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:27,348] rhasspymicrophone_pyaudio_hermes: Connecting to localhost:12183
1598183367: New connection from 127.0.0.1 on port 12183.
1598183367: New client connected from 127.0.0.1 as auto-86629E55-3403-9397-FDB0-5E5C39BD09C4 (p2, c1, k60).
Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 924
[DEBUG:2020-08-23 13:49:27,375] asyncio: Using selector: EpollSelector
Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 924
[DEBUG:2020-08-23 13:49:27,377] rhasspymicrophone_pyaudio_hermes: Connected to MQTT broker
[DEBUG:2020-08-23 13:49:27,385] rhasspymicrophone_pyaudio_hermes: Subscribed to rhasspy/audioServer/getDevices
[DEBUG:2020-08-23 13:49:27,386] rhasspymicrophone_pyaudio_hermes: Subscribed to hermes/audioServer/toggleSummaryOn
[DEBUG:2020-08-23 13:49:27,387] rhasspymicrophone_pyaudio_hermes: Subscribed to hermes/audioServer/toggleSummaryOff
Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 924
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.front.0:CARD=0’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.surround51.0:CARD=0’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.surround51.0:CARD=0’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.surround40.0:CARD=0’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.surround51.0:CARD=0’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.surround51.0:CARD=0’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.surround51.0:CARD=0’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.surround71.0:CARD=0’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2’
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 934
Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 934
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
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
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
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
Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 924
[DEBUG:2020-08-23 13:49:27,672] rhasspyprofile.profile: Loading /usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/fr/profile.json
[DEBUG:2020-08-23 13:49:27,675] rhasspyprofile.profile: Loading /profiles/fr/profile.json
[DEBUG:2020-08-23 13:49:27,676] rhasspyprofile.profile: Loading default profile settings from /usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/defaults.json
[DEBUG:2020-08-23 13:49:27,680] rhasspyserver_hermes: Starting core
[DEBUG:2020-08-23 13:49:27,681] rhasspyserver_hermes: Connecting to localhost:12183 (retries: 0/10)
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
[DEBUG:2020-08-23 13:49:27,693] rhasspyserver_hermes: Connected to MQTT broker
[DEBUG:2020-08-23 13:49:27,694] rhasspyserver_hermes: Subscribed to hermes/hotword/+/detected
[DEBUG:2020-08-23 13:49:27,695] rhasspyserver_hermes: Subscribed to hermes/asr/textCaptured
[DEBUG:2020-08-23 13:49:27,697] rhasspyserver_hermes: Subscribed to hermes/intent/#
[DEBUG:2020-08-23 13:49:27,698] rhasspyserver_hermes: Subscribed to hermes/nlu/intentNotRecognized
[DEBUG:2020-08-23 13:49:27,700] rhasspyserver_hermes: Subscribed to rhasspy/asr/default/default/audioCaptured
1598183367: New connection from 127.0.0.1 on port 12183.
1598183367: New client connected from 127.0.0.1 as auto-3F1B880A-E420-30BB-0EC3-E023EFE65E61 (p2, c1, k60).
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Expression ‘paInvalidSampleRate’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2048
Expression ‘PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2719
Expression ‘PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2843
[DEBUG:2020-08-23 13:49:27,701] rhasspyserver_hermes: Subscribed to hermes/audioServer/default/audioSummary
[DEBUG:2020-08-23 13:49:27,701] rhasspyserver_hermes: Subscribed to hermes/nlu/intentNotRecognized
[DEBUG:2020-08-23 13:49:27,702] rhasspyserver_hermes: Subscribed to rhasspy/asr/default/default/audioCaptured
[DEBUG:2020-08-23 13:49:27,702] rhasspyserver_hermes: Subscribed to hermes/hotword/+/detected
[DEBUG:2020-08-23 13:49:27,703] rhasspyserver_hermes: Subscribed to hermes/audioServer/default/audioSummary
[ERROR:2020-08-23 13:49:27,689] 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 -9997] Invalid sample rate
[DEBUG:2020-08-23 13:49:27,706] rhasspyserver_hermes: Subscribed to hermes/asr/textCaptured
[DEBUG:2020-08-23 13:49:27,715] rhasspyserver_hermes: Subscribed to hermes/intent/#
[INFO:2020-08-23 13:49:27,716] rhasspyserver_hermes: Started
[DEBUG:2020-08-23 13:49:27,716] rhasspyserver_hermes: Starting web server at http://0.0.0.0:12101
[DEBUG:2020-08-23 13:49:27,717] rhasspymicrophone_pyaudio_hermes: -> AudioRecordError(error=’[Errno -9997] Invalid sample rate’, site_id=‘default’, context=‘Device index: 0’, session_id=None)
[DEBUG:2020-08-23 13:49:27,720] rhasspymicrophone_pyaudio_hermes: Publishing 116 bytes(s) to hermes/error/audioServer/record
Running on 0.0.0.0:12101 over http (CTRL + C to quit)
[DEBUG:2020-08-23 13:49:28,541] rhasspynlu_hermes: Namespace(casing=‘lower’, debug=True, host=‘localhost’, intent_graph=’/profiles/fr/intent_graph.pickle.gz’, language=‘fr_FR’, log_format=’[%(levelname)s:%(asctime)s] %(name)s: %(message)s’, no_fuzzy=False, password=None, port=12183, replace_numbers=True, site_id=[‘default’], tls=False, tls_ca_certs=None, tls_cert_reqs=‘CERT_REQUIRED’, tls_certfile=None, tls_ciphers=None, tls_keyfile=None, tls_version=None, username=None)
[DEBUG:2020-08-23 13:49:28,544] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:28,546] rhasspynlu_hermes: Connecting to localhost:12183
1598183368: New connection from 127.0.0.1 on port 12183.
1598183368: New client connected from 127.0.0.1 as auto-A9C6EB5F-D135-9AD9-BC70-44EB1860BB53 (p2, c1, k60).
[DEBUG:2020-08-23 13:49:28,563] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:28,564] rhasspynlu_hermes: Connected to MQTT broker
[DEBUG:2020-08-23 13:49:28,566] rhasspynlu_hermes: Subscribed to hermes/nlu/query
[DEBUG:2020-08-23 13:49:28,566] rhasspynlu_hermes: Subscribed to rhasspy/nlu/default/train
[DEBUG:2020-08-23 13:49:28,619] rhasspyasr_pocketsphinx_hermes: Namespace(acoustic_model=’/profiles/fr/acoustic_model’, base_dictionary=[’/profiles/fr/base_dictionary.txt’, ‘/profiles/fr/custom_words.txt’], base_language_model_fst=’/profiles/fr/base_language_model.fst’, base_language_model_weight=0.0, debug=True, dictionary=’/profiles/fr/dictionary.txt’, dictionary_casing=‘lower’, g2p_casing=‘ignore’, g2p_model=’/profiles/fr/g2p.fst’, host=‘localhost’, intent_graph=’/profiles/fr/intent_graph.pickle.gz’, language_model=’/profiles/fr/language_model.txt’, log_format=’[%(levelname)s:%(asctime)s] %(name)s: %(message)s’, mixed_language_model_fst=’/profiles/fr/mixed.fst’, mllr_matrix=None, no_overwrite_train=False, password=None, port=12183, site_id=[‘default’], tls=False, tls_ca_certs=None, tls_cert_reqs=‘CERT_REQUIRED’, tls_certfile=None, tls_ciphers=None, tls_keyfile=None, tls_version=None, unknown_words=’/profiles/fr/unknown_words.txt’, username=None, voice_before_seconds=0.5, voice_min_seconds=1.0, voice_sensitivity=1, voice_silence_seconds=0.5, voice_skip_seconds=0.0, voice_speech_seconds=0.3)
[DEBUG:2020-08-23 13:49:28,620] rhasspyasr_pocketsphinx_hermes: Loading Pocketsphinx decoder with (hmm=/profiles/fr/acoustic_model, dict=/profiles/fr/dictionary.txt, lm=/profiles/fr/language_model.txt, mllr=None)

[DEBUG:2020-08-23 13:49:28,622] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:28,624] rhasspyasr_pocketsphinx_hermes: Connecting to localhost:12183
1598183368: New connection from 127.0.0.1 on port 12183.
1598183368: New client connected from 127.0.0.1 as auto-58264650-5002-5FCB-F4DF-AEEDD63DF594 (p2, c1, k60).
[DEBUG:2020-08-23 13:49:28,638] asyncio: Using selector: EpollSelector
[DEBUG:2020-08-23 13:49:28,639] rhasspyasr_pocketsphinx_hermes: Connected to MQTT broker
[DEBUG:2020-08-23 13:49:28,641] rhasspyasr_pocketsphinx_hermes: Subscribed to hermes/audioServer/default/audioFrame
[DEBUG:2020-08-23 13:49:28,642] rhasspyasr_pocketsphinx_hermes: Subscribed to hermes/audioServer/default/+/audioSessionFrame
[DEBUG:2020-08-23 13:49:28,643] rhasspyasr_pocketsphinx_hermes: Subscribed to hermes/asr/toggleOff
[DEBUG:2020-08-23 13:49:28,645] rhasspyasr_pocketsphinx_hermes: Subscribed to hermes/asr/toggleOn
[DEBUG:2020-08-23 13:49:28,646] rhasspyasr_pocketsphinx_hermes: Subscribed to rhasspy/g2p/pronounce
[DEBUG:2020-08-23 13:49:28,647] rhasspyasr_pocketsphinx_hermes: Subscribed to hermes/asr/stopListening
[DEBUG:2020-08-23 13:49:28,649] rhasspyasr_pocketsphinx_hermes: Subscribed to hermes/asr/startListening
[DEBUG:2020-08-23 13:49:28,650] rhasspyasr_pocketsphinx_hermes: Subscribed to rhasspy/asr/default/train
[DEBUG:2020-08-23 13:50:55,890] rhasspyprofile.download: speech_to_text.system pocketsphinx pocketsphinx = True
[DEBUG:2020-08-23 13:50:55,891] rhasspyprofile.download: Skipping base_dictionary.txt (/profiles/fr/base_dictionary.txt)
[DEBUG:2020-08-23 13:50:55,892] rhasspyprofile.download: Skipping g2p.fst (/profiles/fr/g2p.fst)
[DEBUG:2020-08-23 13:50:55,892] rhasspyprofile.download: Skipping acoustic_model/feat.params (/profiles/fr/acoustic_model/feat.params)
[DEBUG:2020-08-23 13:50:55,893] rhasspyprofile.download: Skipping acoustic_model/feature_transform (/profiles/fr/acoustic_model/feature_transform)
[DEBUG:2020-08-23 13:50:55,894] rhasspyprofile.download: Skipping acoustic_model/mdef (/profiles/fr/acoustic_model/mdef)
[DEBUG:2020-08-23 13:50:55,895] rhasspyprofile.download: Skipping acoustic_model/means (/profiles/fr/acoustic_model/means)
[DEBUG:2020-08-23 13:50:55,895] rhasspyprofile.download: Skipping acoustic_model/mixture_weights (/profiles/fr/acoustic_model/mixture_weights)
[DEBUG:2020-08-23 13:50:55,896] rhasspyprofile.download: Skipping acoustic_model/noisedict (/profiles/fr/acoustic_model/noisedict)
[DEBUG:2020-08-23 13:50:55,897] rhasspyprofile.download: Skipping acoustic_model/transition_matrices (/profiles/fr/acoustic_model/transition_matrices)
[DEBUG:2020-08-23 13:50:55,898] rhasspyprofile.download: Skipping acoustic_model/variances (/profiles/fr/acoustic_model/variances)
[DEBUG:2020-08-23 13:50:55,898] rhasspyprofile.download: speech_to_text.system kaldi pocketsphinx = False
[DEBUG:2020-08-23 13:50:55,900] rhasspyprofile.download: speech_to_text.pocketsphinx.open_transcription True False = False
[DEBUG:2020-08-23 13:50:55,913] rhasspyprofile.download: speech_to_text.pocketsphinx.mix_weight >0 0 = False
[DEBUG:2020-08-23 13:50:55,914] rhasspyprofile.download: speech_to_text.kaldi.mix_weight >0 0 = False
[DEBUG:2020-08-23 13:50:55,919] rhasspyprofile.download: speech_to_text.kaldi.open_transcription True False = False
[DEBUG:2020-08-23 13:50:55,919] rhasspyprofile.download: intent.system flair fsticuffs = False
[DEBUG:2020-08-23 13:51:01,867] rhasspyserver_hermes: Waiting for transcription (session_id=cc5f6854-3ead-43c9-a6af-26257608da44)
[DEBUG:2020-08-23 13:51:01,869] rhasspyserver_hermes: Subscribed to hermes/error/asr
[DEBUG:2020-08-23 13:51:01,874] rhasspyserver_hermes: -> AsrStartListening(site_id=‘default’, session_id=‘cc5f6854-3ead-43c9-a6af-26257608da44’, lang=None, stop_on_silence=True, send_audio_captured=True, wakeword_id=None, intent_filter=None)
[DEBUG:2020-08-23 13:51:01,877] rhasspyserver_hermes: Publishing 180 bytes(s) to hermes/asr/startListening
[DEBUG:2020-08-23 13:51:01,891] rhasspyasr_pocketsphinx_hermes: <- AsrStartListening(site_id=‘default’, session_id=‘cc5f6854-3ead-43c9-a6af-26257608da44’, lang=None, stop_on_silence=True, send_audio_captured=True, wakeword_id=None, intent_filter=None)
[DEBUG:2020-08-23 13:51:01,894] rhasspyasr_pocketsphinx_hermes: Starting listening (session_id=cc5f6854-3ead-43c9-a6af-26257608da44)
[ERROR:2020-08-23 13:51:31,894] rhasspyserver_hermes:
Traceback (most recent call last):
File “/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py”, line 1821, in full_dispatch_request
result = await self.dispatch_request(request_context)
File “/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py”, line 1869, in dispatch_request
return await handler(**request_.view_args)
File “/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/main.py”, line 827, in api_listen_for_command
handle_captured(), messages, message_types
File “/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/init.py”, line 959, in publish_wait
result_awaitable, timeout=timeout_seconds
File “/usr/lib/python3.7/asyncio/tasks.py”, line 449, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
[DEBUG:2020-08-23 13:57:46,788] rhasspyprofile.download: speech_to_text.system pocketsphinx pocketsphinx = True
[DEBUG:2020-08-23 13:57:46,788] rhasspyprofile.download: Skipping base_dictionary.txt (/profiles/fr/base_dictionary.txt)
[DEBUG:2020-08-23 13:57:46,789] rhasspyprofile.download: Skipping g2p.fst (/profiles/fr/g2p.fst)
[DEBUG:2020-08-23 13:57:46,789] rhasspyprofile.download: Skipping acoustic_model/feat.params (/profiles/fr/acoustic_model/feat.params)
[DEBUG:2020-08-23 13:57:46,790] rhasspyprofile.download: Skipping acoustic_model/feature_transform (/profiles/fr/acoustic_model/feature_transform)
[DEBUG:2020-08-23 13:57:46,790] rhasspyprofile.download: Skipping acoustic_model/mdef (/profiles/fr/acoustic_model/mdef)
[DEBUG:2020-08-23 13:57:46,791] rhasspyprofile.download: Skipping acoustic_model/means (/profiles/fr/acoustic_model/means)
[DEBUG:2020-08-23 13:57:46,791] rhasspyprofile.download: Skipping acoustic_model/mixture_weights (/profiles/fr/acoustic_model/mixture_weights)
[DEBUG:2020-08-23 13:57:46,792] rhasspyprofile.download: Skipping acoustic_model/noisedict (/profiles/fr/acoustic_model/noisedict)
[DEBUG:2020-08-23 13:57:46,792] rhasspyprofile.download: Skipping acoustic_model/transition_matrices (/profiles/fr/acoustic_model/transition_matrices)
[DEBUG:2020-08-23 13:57:46,793] rhasspyprofile.download: Skipping acoustic_model/variances (/profiles/fr/acoustic_model/variances)
[DEBUG:2020-08-23 13:57:46,793] rhasspyprofile.download: speech_to_text.system kaldi pocketsphinx = False
[DEBUG:2020-08-23 13:57:46,794] rhasspyprofile.download: speech_to_text.pocketsphinx.open_transcription True False = False
[DEBUG:2020-08-23 13:57:46,794] rhasspyprofile.download: speech_to_text.pocketsphinx.mix_weight >0 0 = False
[DEBUG:2020-08-23 13:57:46,795] rhasspyprofile.download: speech_to_text.kaldi.mix_weight >0 0 = False
[DEBUG:2020-08-23 13:57:46,795] rhasspyprofile.download: speech_to_text.kaldi.open_transcription True False = False
[DEBUG:2020-08-23 13:57:46,796] rhasspyprofile.download: intent.system flair fsticuffs = False
[DEBUG:2020-08-23 13:57:46,869] rhasspyserver_hermes: Subscribed to rhasspy/audioServer/devices
[DEBUG:2020-08-23 13:57:46,871] rhasspyserver_hermes: -> AudioGetDevices(modes=[<AudioDeviceMode.INPUT: ‘input’>], site_id=‘default’, id=‘a965ee5c-8efb-4934-bf9b-2b529f2fb7ca’, test=False)
[DEBUG:2020-08-23 13:57:46,872] rhasspyserver_hermes: Publishing 102 bytes(s) to rhasspy/audioServer/getDevices
[DEBUG:2020-08-23 13:57:46,877] rhasspymicrophone_pyaudio_hermes: <- AudioGetDevices(modes=[<AudioDeviceMode.INPUT: ‘input’>], site_id=‘default’, id=‘a965ee5c-8efb-4934-bf9b-2b529f2fb7ca’, test=False)
[DEBUG:2020-08-23 13:57:46,877] rhasspyspeakers_cli_hermes: <- AudioGetDevices(modes=[<AudioDeviceMode.INPUT: ‘input’>], site_id=‘default’, id=‘a965ee5c-8efb-4934-bf9b-2b529f2fb7ca’, test=False)
[DEBUG:2020-08-23 13:57:46,888] rhasspymicrophone_pyaudio_hermes: -> AudioDevices(devices=[AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘0’, name=‘USB PnP Audio Device: Audio (hw:2,0)’, description=’’, working=None), AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘1’, name=‘USB2.0 Device: Audio (hw:3,0)’, description=’’, working=None), AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘2’, name=‘upmix’, description=’’, working=None), AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘3’, name=‘vdownmix’, description=’’, working=None), AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘4’, name=‘dmix’, description=’’, working=None)], site_id=‘default’, id=‘a965ee5c-8efb-4934-bf9b-2b529f2fb7ca’)
[DEBUG:2020-08-23 13:57:46,888] rhasspymicrophone_pyaudio_hermes: Publishing 553 bytes(s) to rhasspy/audioServer/devices
[DEBUG:2020-08-23 13:57:46,898] rhasspyserver_hermes: Handling AudioDevices (topic=rhasspy/audioServer/devices, id=6e5a83d3-827c-42aa-b702-bad3d73fc9bb)
[DEBUG:2020-08-23 13:57:46,900] rhasspyserver_hermes: Subscribed to rhasspy/tts/voices
[DEBUG:2020-08-23 13:57:46,901] rhasspyserver_hermes: -> GetVoices(id=‘371f4661-6ff7-4de7-95d8-0da1db528f5c’, site_id=‘default’)
[DEBUG:2020-08-23 13:57:46,902] rhasspyserver_hermes: Publishing 67 bytes(s) to rhasspy/tts/getVoices
[DEBUG:2020-08-23 13:57:46,907] rhasspytts_cli_hermes: <- GetVoices(id=‘371f4661-6ff7-4de7-95d8-0da1db528f5c’, site_id=‘default’)
[DEBUG:2020-08-23 13:57:46,907] rhasspyserver_hermes: -> AudioGetDevices(modes=[<AudioDeviceMode.OUTPUT: ‘output’>], site_id=‘default’, id=‘f17a3e1b-1a2c-4d32-b803-d9dbb75d8df6’, test=False)
[DEBUG:2020-08-23 13:57:46,908] rhasspyserver_hermes: Publishing 103 bytes(s) to rhasspy/audioServer/getDevices
[DEBUG:2020-08-23 13:57:46,908] rhasspytts_cli_hermes: espeak --voices | tail -n +2 | awk ‘{ print $2,$4 }’
[DEBUG:2020-08-23 13:57:46,956] rhasspyspeakers_cli_hermes: <- AudioGetDevices(modes=[<AudioDeviceMode.OUTPUT: ‘output’>], site_id=‘default’, id=‘f17a3e1b-1a2c-4d32-b803-d9dbb75d8df6’, test=False)
[DEBUG:2020-08-23 13:57:46,957] rhasspyspeakers_cli_hermes: [‘aplay’, ‘-L’]
[DEBUG:2020-08-23 13:57:46,956] rhasspymicrophone_pyaudio_hermes: <- AudioGetDevices(modes=[<AudioDeviceMode.OUTPUT: ‘output’>], site_id=‘default’, id=‘f17a3e1b-1a2c-4d32-b803-d9dbb75d8df6’, test=False)
[DEBUG:2020-08-23 13:57:46,957] rhasspymicrophone_pyaudio_hermes: Not a request for input devices
[DEBUG:2020-08-23 13:57:47,030] rhasspytts_cli_hermes: -> Voices(voices=[Voice(voice_id=‘af’, description=‘afrikaans’), Voice(voice_id=‘an’, description=‘aragonese’), Voice(voice_id=‘bg’, description=‘bulgarian’), Voice(voice_id=‘bs’, description=‘bosnian’), Voice(voice_id=‘ca’, description=‘catalan’), Voice(voice_id=‘cs’, description=‘czech’), Voice(voice_id=‘cy’, description=‘welsh’), Voice(voice_id=‘da’, description=‘danish’), Voice(voice_id=‘de’, description=‘german’), Voice(voice_id=‘el’, description=‘greek’), Voice(voice_id=‘en’, description=‘default’), Voice(voice_id=‘en-gb’, description=‘english’), Voice(voice_id=‘en-sc’, description=‘en-scottish’), Voice(voice_id=‘en-uk-north’, description=‘english-north’), Voice(voice_id=‘en-uk-rp’, description=‘english_rp’), Voice(voice_id=‘en-uk-wmids’, description=‘english_wmids’), Voice(voice_id=‘en-us’, description=‘english-us’), Voice(voice_id=‘en-wi’, description=‘en-westindies’), Voice(voice_id=‘eo’, description=‘esperanto’), Voice(voice_id=‘es’, description=‘spanish’), Voice(voice_id=‘es-la’, description=‘spanish-latin-am’), Voice(voice_id=‘et’, description=‘estonian’), Voice(voice_id=‘fa’, description=‘persian’), Voice(voice_id=‘fa-pin’, description=‘persian-pinglish’), Voice(voice_id=‘fi’, description=‘finnish’), Voice(voice_id=‘fr-be’, description=‘french-Belgium’), Voice(voice_id=‘fr-fr’, description=‘french’), Voice(voice_id=‘ga’, description=‘irish-gaeilge’), Voice(voice_id=‘grc’, description=‘greek-ancient’), Voice(voice_id=‘hi’, description=‘hindi’), Voice(voice_id=‘hr’, description=‘croatian’), Voice(voice_id=‘hu’, description=‘hungarian’), Voice(voice_id=‘hy’, description=‘armenian’), Voice(voice_id=‘hy-west’, description=‘armenian-west’), Voice(voice_id=‘id’, description=‘indonesian’), Voice(voice_id=‘is’, description=‘icelandic’), Voice(voice_id=‘it’, description=‘italian’), Voice(voice_id=‘jbo’, description=‘lojban’), Voice(voice_id=‘ka’, description=‘georgian’), Voice(voice_id=‘kn’, description=‘kannada’), Voice(voice_id=‘ku’, description=‘kurdish’), Voice(voice_id=‘la’, description=‘latin’), Voice(voice_id=‘lfn’, description=‘lingua_franca_nova’), Voice(voice_id=‘lt’, description=‘lithuanian’), Voice(voice_id=‘lv’, description=‘latvian’), Voice(voice_id=‘mk’, description=‘macedonian’), Voice(voice_id=‘ml’, description=‘malayalam’), Voice(voice_id=‘ms’, description=‘malay’), Voice(voice_id=‘ne’, description=‘nepali’), Voice(voice_id=‘nl’, description=‘dutch’), Voice(voice_id=‘no’, description=‘norwegian’), Voice(voice_id=‘pa’, description=‘punjabi’), Voice(voice_id=‘pl’, description=‘polish’), Voice(voice_id=‘pt-br’, description=‘brazil’), Voice(voice_id=‘pt-pt’, description=‘portugal’), Voice(voice_id=‘ro’, description=‘romanian’), Voice(voice_id=‘ru’, description=‘russian’), Voice(voice_id=‘sk’, description=‘slovak’), Voice(voice_id=‘sq’, description=‘albanian’), Voice(voice_id=‘sr’, description=‘serbian’), Voice(voice_id=‘sv’, description=‘swedish’), Voice(voice_id=‘sw’, description=‘swahili-test’), Voice(voice_id=‘ta’, description=‘tamil’), Voice(voice_id=‘tr’, description=‘turkish’), Voice(voice_id=‘vi’, description=‘vietnam’), Voice(voice_id=‘vi-hue’, description=‘vietnam_hue’), Voice(voice_id=‘vi-sgn’, description=‘vietnam_sgn’), Voice(voice_id=‘zh’, description=‘Mandarin’), Voice(voice_id=‘zh-yue’, description=‘cantonese’)], id=‘371f4661-6ff7-4de7-95d8-0da1db528f5c’, site_id=‘default’)
[DEBUG:2020-08-23 13:57:47,031] rhasspytts_cli_hermes: Publishing 3365 bytes(s) to rhasspy/tts/voices
[DEBUG:2020-08-23 13:57:47,107] rhasspyspeakers_cli_hermes: -> AudioDevices(devices=[AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘null’, name=‘null’, description='Discard all samples (playback) or generate zero samples (capture)
’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘jack’, name=‘jack’, description=‘JACK Audio Connection Kit’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘pulse’, name=‘pulse’, description=‘PulseAudio Sound Server’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘default:CARD=b1’, name=‘default:CARD=b1’, description=‘Default Audio Device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘sysdefault:CARD=b1’, name=‘sysdefault:CARD=b1’, description=‘Default Audio Device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘dmix:CARD=b1,DEV=0’, name=‘dmix:CARD=b1,DEV=0’, description=‘Direct sample mixing device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘dsnoop:CARD=b1,DEV=0’, name=‘dsnoop:CARD=b1,DEV=0’, description=‘Direct sample snooping device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘hw:CARD=b1,DEV=0’, name=‘hw:CARD=b1,DEV=0’, description=‘Direct hardware device without any conversions’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘plughw:CARD=b1,DEV=0’, name=‘plughw:CARD=b1,DEV=0’, description=‘Hardware device with all software conversions’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘usbstream:CARD=b1’, name=‘usbstream:CARD=b1’, description=‘USB Stream Output’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘default:CARD=Headphones’, name=‘default:CARD=Headphones’, description=‘Default Audio Device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘sysdefault:CARD=Headphones’, name=‘sysdefault:CARD=Headphones’, description=‘Default Audio Device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘dmix:CARD=Headphones,DEV=0’, name=‘dmix:CARD=Headphones,DEV=0’, description=‘Direct sample mixing device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘dsnoop:CARD=Headphones,DEV=0’, name=‘dsnoop:CARD=Headphones,DEV=0’, description=‘Direct sample snooping device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘hw:CARD=Headphones,DEV=0’, name=‘hw:CARD=Headphones,DEV=0’, description=‘Direct hardware device without any conversions’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘plughw:CARD=Headphones,DEV=0’, name=‘plughw:CARD=Headphones,DEV=0’, description=‘Hardware device with all software conversions’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘usbstream:CARD=Headphones’, name=‘usbstream:CARD=Headphones’, description=‘USB Stream Output’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘usbstream:CARD=Device’, name=‘usbstream:CARD=Device’, description=‘USB Stream Output’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘default:CARD=Device_1’, name=‘default:CARD=Device_1’, description=‘Default Audio Device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘sysdefault:CARD=Device_1’, name=‘sysdefault:CARD=Device_1’, description=‘Default Audio Device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘front:CARD=Device_1,DEV=0’, name=‘front:CARD=Device_1,DEV=0’, description=‘Front speakers’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘surround21:CARD=Device_1,DEV=0’, name=‘surround21:CARD=Device_1,DEV=0’, description=‘2.1 Surround output to Front and Subwoofer speakers’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘surround40:CARD=Device_1,DEV=0’, name=‘surround40:CARD=Device_1,DEV=0’, description=‘4.0 Surround output to Front and Rear speakers’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘surround41:CARD=Device_1,DEV=0’, name=‘surround41:CARD=Device_1,DEV=0’, description=‘4.1 Surround output to Front, Rear and Subwoofer speakers’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘surround50:CARD=Device_1,DEV=0’, name=‘surround50:CARD=Device_1,DEV=0’, description=‘5.0 Surround output to Front, Center and Rear speakers’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘surround51:CARD=Device_1,DEV=0’, name=‘surround51:CARD=Device_1,DEV=0’, description=‘5.1 Surround output to Front, Center, Rear and Subwoofer speakers’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘surround71:CARD=Device_1,DEV=0’, name=‘surround71:CARD=Device_1,DEV=0’, description=‘7.1 Surround output to Front, Center, Side, Rear and Woofer speakers’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘iec958:CARD=Device_1,DEV=0’, name=‘iec958:CARD=Device_1,DEV=0’, description=‘IEC958 (S/PDIF) Digital Audio Output’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘dmix:CARD=Device_1,DEV=0’, name=‘dmix:CARD=Device_1,DEV=0’, description=‘Direct sample mixing device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘dsnoop:CARD=Device_1,DEV=0’, name=‘dsnoop:CARD=Device_1,DEV=0’, description=‘Direct sample snooping device’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘hw:CARD=Device_1,DEV=0’, name=‘hw:CARD=Device_1,DEV=0’, description=‘Direct hardware device without any conversions’, working=None), AudioDevice(mode=<AudioDeviceMode.OUTPUT: ‘output’>, id=‘plughw:CARD=Device_1,DEV=0’, name=‘plughw:CARD=Device_1,DEV=0’, description=‘Hardware device with all software conversions’, working=None)], site_id=‘default’, id=‘f17a3e1b-1a2c-4d32-b803-d9dbb75d8df6’)
[DEBUG:2020-08-23 13:57:47,108] rhasspyspeakers_cli_hermes: Publishing 5117 bytes(s) to rhasspy/audioServer/devices
[DEBUG:2020-08-23 13:57:47,123] rhasspyserver_hermes: Handling Voices (topic=rhasspy/tts/voices, id=c11187e4-a13a-441f-92b4-5a0265d21a37)
[DEBUG:2020-08-23 13:57:47,154] rhasspyserver_hermes: Handling AudioDevices (topic=rhasspy/audioServer/devices, id=9ad85dca-eafa-45f2-8526-b323ada845d8)
[DEBUG:2020-08-23 13:57:53,418] rhasspyserver_hermes: -> AudioGetDevices(modes=[<AudioDeviceMode.INPUT: ‘input’>], site_id=‘default’, id=‘e3cff6b6-796d-4b9c-8d4f-b3495acc814e’, test=True)
[DEBUG:2020-08-23 13:57:53,419] rhasspyserver_hermes: Publishing 101 bytes(s) to rhasspy/audioServer/getDevices
[DEBUG:2020-08-23 13:57:53,427] rhasspyspeakers_cli_hermes: <- AudioGetDevices(modes=[<AudioDeviceMode.INPUT: ‘input’>], site_id=‘default’, id=‘e3cff6b6-796d-4b9c-8d4f-b3495acc814e’, test=True)
[DEBUG:2020-08-23 13:57:53,427] rhasspymicrophone_pyaudio_hermes: <- AudioGetDevices(modes=[<AudioDeviceMode.INPUT: ‘input’>], site_id=‘default’, id=‘e3cff6b6-796d-4b9c-8d4f-b3495acc814e’, test=True)
Expression ‘paInvalidSampleRate’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2048
Expression ‘PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2719
Expression ‘PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2843
[ERROR:2020-08-23 13:57:53,429] rhasspymicrophone_pyaudio_hermes: get_microphone_working ({device_name})
Traceback (most recent call last):
File “/usr/lib/rhasspy/rhasspy-microphone-pyaudio-hermes/rhasspymicrophone_pyaudio_hermes/init.py”, line 279, in get_microphone_working
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 -9997] Invalid sample rate
Expression ‘parameters->channelCount <= maxChans’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1514
Expression ‘ValidateParameters( inputParameters, hostApi, StreamDirection_In )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2818
[ERROR:2020-08-23 13:57:53,430] rhasspymicrophone_pyaudio_hermes: get_microphone_working ({device_name})
Traceback (most recent call last):
File “/usr/lib/rhasspy/rhasspy-microphone-pyaudio-hermes/rhasspymicrophone_pyaudio_hermes/init.py”, line 279, in get_microphone_working
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 -9998] Invalid number of channels
Expression ‘parameters->channelCount <= maxChans’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1514
Expression ‘ValidateParameters( inputParameters, hostApi, StreamDirection_In )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2818
[ERROR:2020-08-23 13:57:53,431] rhasspymicrophone_pyaudio_hermes: get_microphone_working ({device_name})
Traceback (most recent call last):
File “/usr/lib/rhasspy/rhasspy-microphone-pyaudio-hermes/rhasspymicrophone_pyaudio_hermes/init.py”, line 279, in get_microphone_working
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 -9998] Invalid number of channels
Expression ‘parameters->channelCount <= maxChans’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1514
Expression ‘ValidateParameters( inputParameters, hostApi, StreamDirection_In )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2818
[ERROR:2020-08-23 13:57:53,432] rhasspymicrophone_pyaudio_hermes: get_microphone_working ({device_name})
Traceback (most recent call last):
File “/usr/lib/rhasspy/rhasspy-microphone-pyaudio-hermes/rhasspymicrophone_pyaudio_hermes/init.py”, line 279, in get_microphone_working
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 -9998] Invalid number of channels
Expression ‘parameters->channelCount <= maxChans’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1514
Expression ‘ValidateParameters( inputParameters, hostApi, StreamDirection_In )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2818
[ERROR:2020-08-23 13:57:53,433] rhasspymicrophone_pyaudio_hermes: get_microphone_working ({device_name})
Traceback (most recent call last):
File “/usr/lib/rhasspy/rhasspy-microphone-pyaudio-hermes/rhasspymicrophone_pyaudio_hermes/init.py”, line 279, in get_microphone_working
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 -9998] Invalid number of channels
[DEBUG:2020-08-23 13:57:53,442] rhasspymicrophone_pyaudio_hermes: -> AudioDevices(devices=[AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘0’, name='USB PnP Audio Device: Audio (hw:2,0)
’, description=’’, working=False), AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘1’, name=‘USB2.0 Device: Audio (hw:3,0)’, description=’’, working=False), AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘2’, name=‘upmix’, description=’’, working=False), AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘3’, name=‘vdownmix’, description=’’, working=False), AudioDevice(mode=<AudioDeviceMode.INPUT: ‘input’>, id=‘4’, name=‘dmix’, description=’’, working=False)], site_id=‘default’, id=‘e3cff6b6-796d-4b9c-8d4f-b3495acc814e’)
[DEBUG:2020-08-23 13:57:53,442] rhasspymicrophone_pyaudio_hermes: Publishing 558 bytes(s) to rhasspy/audioServer/devices
[DEBUG:2020-08-23 13:57:53,455] rhasspyserver_hermes: Handling AudioDevices (topic=rhasspy/audioServer/devices, id=cc645585-dc81-48c1-bc4d-95e9713d28a1)
[DEBUG:2020-08-23 13:58:03,547] rhasspyprofile.download: speech_to_text.system pocketsphinx pocketsphinx = True
[DEBUG:2020-08-23 13:58:03,548] rhasspyprofile.download: Skipping base_dictionary.txt (/profiles/fr/base_dictionary.txt)
[DEBUG:2020-08-23 13:58:03,549] rhasspyprofile.download: Skipping g2p.fst (/profiles/fr/g2p.fst)
[DEBUG:2020-08-23 13:58:03,550] rhasspyprofile.download: Skipping acoustic_model/feat.params (/profiles/fr/acoustic_model/feat.params)
[DEBUG:2020-08-23 13:58:03,551] rhasspyprofile.download: Skipping acoustic_model/feature_transform (/profiles/fr/acoustic_model/feature_transform)
[DEBUG:2020-08-23 13:58:03,552] rhasspyprofile.download: Skipping acoustic_model/mdef (/profiles/fr/acoustic_model/mdef)
[DEBUG:2020-08-23 13:58:03,552] rhasspyprofile.download: Skipping acoustic_model/means (/profiles/fr/acoustic_model/means)
[DEBUG:2020-08-23 13:58:03,553] rhasspyprofile.download: Skipping acoustic_model/mixture_weights (/profiles/fr/acoustic_model/mixture_weights)
[DEBUG:2020-08-23 13:58:03,554] rhasspyprofile.download: Skipping acoustic_model/noisedict (/profiles/fr/acoustic_model/noisedict)
[DEBUG:2020-08-23 13:58:03,555] rhasspyprofile.download: Skipping acoustic_model/transition_matrices (/profiles/fr/acoustic_model/transition_matrices)
[DEBUG:2020-08-23 13:58:03,556] rhasspyprofile.download: Skipping acoustic_model/variances (/profiles/fr/acoustic_model/variances)
[DEBUG:2020-08-23 13:58:03,557] rhasspyprofile.download: speech_to_text.system kaldi pocketsphinx = False
[DEBUG:2020-08-23 13:58:03,557] rhasspyprofile.download: speech_to_text.pocketsphinx.open_transcription True False = False
[DEBUG:2020-08-23 13:58:03,558] rhasspyprofile.download: speech_to_text.pocketsphinx.mix_weight >0 0 = False
[DEBUG:2020-08-23 13:58:03,559] rhasspyprofile.download: speech_to_text.kaldi.mix_weight >0 0 = False
[DEBUG:2020-08-23 13:58:03,560] rhasspyprofile.download: speech_to_text.kaldi.open_transcription True False = False
[DEBUG:2020-08-23 13:58:03,561] rhasspyprofile.download: intent.system flair fsticuffs = False
[DEBUG:2020-08-23 13:58:05,980] rhasspyserver_hermes: Waiting for transcription (session_id=6857cfba-0d77-4c14-bd70-ebf4ed0e8f09)
[DEBUG:2020-08-23 13:58:05,983] rhasspyserver_hermes: -> AsrStartListening(site_id=‘default’, session_id=‘6857cfba-0d77-4c14-bd70-ebf4ed0e8f09’, lang=None, stop_on_silence=True, send_audio_captured=True, wakeword_id=None, intent_filter=None)
[DEBUG:2020-08-23 13:58:05,983] rhasspyserver_hermes: Publishing 180 bytes(s) to hermes/asr/startListening
[DEBUG:2020-08-23 13:58:05,991] rhasspyasr_pocketsphinx_hermes: <- AsrStartListening(site_id=‘default’, session_id=‘6857cfba-0d77-4c14-bd70-ebf4ed0e8f09’, lang=None, stop_on_silence=True, send_audio_captured=True, wakeword_id=None, intent_filter=None)
[DEBUG:2020-08-23 13:58:05,992] rhasspyasr_pocketsphinx_hermes: Starting listening (session_id=6857cfba-0d77-4c14-bd70-ebf4ed0e8f09)
[ERROR:2020-08-23 13:58:36,014] rhasspyserver_hermes:
Traceback (most recent call last):
File “/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py”, line 1821, in full_dispatch_request
result = await self.dispatch_request(request_context)
File “/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py”, line 1869, in dispatch_request
return await handler(**request
.view_args)
File “/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/main.py”, line 827, in api_listen_for_command
handle_captured(), messages, message_types
File “/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/init.py”, line 959, in publish_wait
result_awaitable, timeout=timeout_seconds
File “/usr/lib/python3.7/asyncio/tasks.py”, line 449, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

This looks like an audio configuration problem. What are the audio settings in Rhasspy?

how can I answer your question correctly?

Like this here: https://rhasspy.readthedocs.io/en/latest/tutorials/#test-microphone

if I click “test”, absolutly no line have (working) …

Not sure of what I’m saying.

ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

It could be a permission problem to audio access for the user (pi ?) that is running rhasspy. Make sure the user running rhasspy is member of the “audio” group ?

You told before you can record and playback your voice without rhasspy. Which user and command line with ?

I don’t remember the comand line, just the fact that without “sudo” it didn’t work

I remember also that I have a lot of trouble everytime I wanted to add a file or something else because I don’t have the right to do that… so I needed everytime to add a file with “sudo”

Is my answer good enough?

Somebody is here? :sob:

seriously I need help please!

My suggestion is to go back to the beginning, remove your existing Rhasspy installation and follow the installation and configuration instructions carefully, step by step. If you try things from the command line to verify that it’s working (or not), keep a written record of your commands and their outcome. Then, if you do encounter a problem, come back here straight away for help and you’ll be able to get better support from the community if you say exactly what you have done, and the exact problem you are experiencing.
Hope this helps.

1 Like

I already follow exactly the tutorial…

so what’s going on with rhasspy? Rhasspy can’t have the right to use the mic? how give him the right?