rhasspy / wyoming-satellite

Remote voice satellite using Wyoming protocol
MIT License
499 stars 72 forks source link

Cannot run with `--mic-noise-suppression` #176

Closed thetic closed 3 weeks ago

thetic commented 1 month ago

Adding --mic-noise-suppression 2 to the run command as documented in the tutorial causes the command to fail.

$ journalctl -u wyoming-satellite.service -f
Jun 15 17:31:53 wyoming1 run[1265]:   File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
Jun 15 17:31:53 wyoming1 run[1265]:     raise CalledProcessError(retcode, cmd)
Jun 15 17:31:53 wyoming1 run[1265]: subprocess.CalledProcessError: Command '['/home/wyoming/wyoming-satellite/.venv/bin/python3', '-m', 'wyoming_satellite', '--name', 'wyoming1', '--uri', 'tcp://0.0.0.0:10700', '--mic-command', 'arecord -D plughw:CARD=Phone,DEV=0 -r 16000 -c 1 -f S16_LE -t raw', '--snd-command', 'aplay -D plughw:CARD=Phone,DEV=0 -r 22050 -c 1 -f S16_LE -t raw', '--wake-uri', 'tcp://127.0.0.1:10400', '--wake-word-name', 'ok_nabu', '--awake-wav', '/home/wyoming/yes.wav', '--mic-noise-suppression', '2', '--debug']' returned non-zero exit status 1.
Jun 15 17:31:53 wyoming1 systemd[1]: wyoming-satellite.service: Main process exited, code=exited, status=1/FAILURE
Jun 15 17:31:53 wyoming1 systemd[1]: wyoming-satellite.service: Failed with result 'exit-code'.
Jun 15 17:31:54 wyoming1 systemd[1]: wyoming-satellite.service: Scheduled restart job, restart counter is at 5.
Jun 15 17:31:54 wyoming1 systemd[1]: Stopped wyoming-satellite.service - Wyoming Satellite.
Jun 15 17:31:54 wyoming1 systemd[1]: wyoming-satellite.service: Start request repeated too quickly.
Jun 15 17:31:54 wyoming1 systemd[1]: wyoming-satellite.service: Failed with result 'exit-code'.
Jun 15 17:31:54 wyoming1 systemd[1]: Failed to start wyoming-satellite.service - Wyoming Satellite.
^C
$ cat /etc/systemd/system/wyoming-satellite.service
[Unit]
Description=Wyoming Satellite
Wants=network-online.target
After=network-online.target
Requires=wyoming-openwakeword.service

[Service]
Type=simple
ExecStart=/home/wyoming/wyoming-satellite/script/run --name 'wyoming1' --uri 'tcp://0.0.0.0:10700' --mic-command 'arecord -D plughw:CARD=Phone,DEV=0 -r 16000 -c 1 -f S16_LE -t raw' --snd-command 'aplay -D plughw:CARD=Phone,DEV=0 -r 22050 -c 1 -f S16_LE -t raw' --wake-uri 'tcp://127.0.0.1:10400' --wake-word-name 'ok_nabu' --awake-wav '/home/wyoming/yes.wav' --mic-noise-suppression 2 --debug
WorkingDirectory=/home/wyoming/wyoming-satellite
Restart=always
RestartSec=1

[Install]
WantedBy=default.target
thetic commented 1 month ago

--mic-auto-gain fails similarly

thetic commented 1 month ago

When running the command directly, it immediately returns with no error output and exit code 1.

$ /home/wyoming/wyoming-satellite/.venv/bin/python3 -m wyoming_satellite --name wyoming1 --uri tcp://0.0.0.0:10700 --mic-command 'arecord -D plughw:CARD=Phone,DEV=0 -r 16000 -c 1 -f S16_LE -t raw' --snd-command 'aplay -D plughw:CARD=Phone,DEV=0 -r 22050 -c 1 -f S16_LE -t raw' --wake-uri tcp://127.0.0.1:10400 --wake-word-name ok_nabu --awake-wav /home/wyoming/yes.wav --mic-noise-suppression 2 --debug
Install extras for webrtc
$ echo $?
1
synesthesiam commented 1 month ago

You need to install the extra requirements for webrtc.