#Wyoming Satellite Issues

1 messages · Page 1 of 1 (latest)

stiff tundra
#
Sep 18 02:09:46 zero1 run[1181]: Install extras for webrtc
Sep 18 02:09:46 zero1 run[1180]: Traceback (most recent call last):
Sep 18 02:09:46 zero1 run[1180]:   File "/home/russell/wyoming-satellite/script/run", line 12, in <module>
Sep 18 02:09:46 zero1 run[1180]:     subprocess.check_call([context.env_exe, "-m", "wyoming_satellite"] + sys.argv[1:])
Sep 18 02:09:46 zero1 run[1180]:   File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
Sep 18 02:09:46 zero1 run[1180]:     raise CalledProcessError(retcode, cmd)
Sep 18 02:09:46 zero1 run[1180]: subprocess.CalledProcessError: Command '['/home/russell/wyoming-satellite/.venv/bin/python3', '-m', 'wyoming_satellite', '--name', 'Zero1 Satellite', '--uri', 'tcp://0.0.0.0:10700', '--mic-command', 'parecord --property=media.role=phone --rate=16000 --channels=1 --format=s16le --raw --latency-msec 10', '--snd-command', 'paplay --property=media.role=announce --rate=44100 --channels=1 --format=s16le --raw --latency-msec 10', '--snd-command-rate', '44100', '--snd-volume-multiplier', '0.1', '--mic-auto-gain', '7', '--mic-noise-suppression', '3', '--detection-command', '/home/russell/wyoming-enhancements/snapcast/scripts/awake.sh', '--tts-stop-command', '/home/russell/wyoming-enhancements/snapcast/scripts/done.sh', '--error-command', '/home/russell/wyoming-enhancements/snapcast/scripts/done.sh']' returned non-zero exit status 1.
Sep 18 02:09:46 zero1 systemd[1]: enhanced-wyoming-satellite.service: Main process exited, code=exited, status=1/FAILURE
Sep 18 02:09:46 zero1 systemd[1]: enhanced-wyoming-satellite.service: Failed with result 'exit-code'.
#

I am gettting this error for my service to start the satellite. The audio streaming from Music Assistant works fine

odd grove
#

Log doesn't say anything. Try run your command in bash directly, and see what it spits.

stiff tundra
# odd grove Log doesn't say anything. Try run your command in bash directly, and see what it...
Install extras for webrtc
Traceback (most recent call last):
  File "/home/russell/wyoming-satellite/script/run", line 12, in <module>
    subprocess.check_call([context.env_exe, "-m", "wyoming_satellite"] + sys.argv[1:])
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/russell/wyoming-satellite/.venv/bin/python3', '-m', 'wyoming_satellite', '--name', 'Zero1 Satellite', '--uri', 'tcp://0.0.0.0:10700', '--mic-command', 'parecord --property=media.role=phone --rate=16000 --channels=1 --format=s16le --raw --latency-msec 10', '--snd-command', 'paplay --property=media.role=announce --rate=44100 --channels=1 --format=s16le --raw --latency-msec 10', '--snd-command-rate', '44100', '--snd-volume-multiplier', '0.1', '--mic-auto-gain', '7', '--mic-noise-suppression', '3', '--detection-command', '/home/russell/wyoming-enhancements/snapcast/scripts/awake.sh', '--tts-stop-command', '/home/russell/wyoming-enhancements/snapcast/scripts/done.sh', '--error-command', '/home/russell/wyoming-enhancements/snapcast/scripts/done.sh']' returned non-zero exit status 1.```
odd grove
#

Damn

#

Try reducing your command to narrow the trouble. remove unnecessary things one by one (like detection command, stop and error commands etc.

stiff tundra
#

script/run --name 'Zero1 Satellite' --uri 'tcp://0.0.0.0:10700' --mic-command 'parecord --property=media.role=phone --rate=16000 --channels=1 --format=s16le --raw --latency-msec 10' --snd-command 'paplay --property=media.role=announce --rate=44100 --channels=1 --format=s16le --raw --latency-msec 10' --snd-command-rate '44100' works

#

script/run --name 'Zero1 Satellite' --uri 'tcp://0.0.0.0:10700' --mic-command 'parecord --property=media.role=phone --rate=16000 --channels=1 --format=s16le --raw --latency-msec 10' --snd-command 'paplay --property=media.role=announce --rate=44100 --channels=1 --format=s16le --raw --latency-msec 10' --snd-command-rate '44100' --detection-command '/home/russell/wyoming-enhancements/snapcast/scripts/awake.sh' --tts-stop-command '/home/russell/wyoming-enhancements/snapcast/scripts/done.sh' --error-command '/home/russell/wyoming-enhancements/snapcast/scripts/done.sh' works

#

Therefor the issue is in --snd-volume-multiplier '0.1' --mic-auto-gain '7' --mic-noise-suppression '3'

odd grove
#

Narrow it more, and then play with numbers 🙂

stiff tundra
#

Is is the numbers are not supposed to be in quotes?

#
    --mic-auto-gain 7 \
    --mic-noise-suppression 3 \ ``` is what is in the example
#

But I do have the --snd-command-rate '44100' in quotes and that works

odd grove
#

IDK, but i have it as in example (it's actually easier to modify it that way, with new lines) 🙂

stiff tundra
#

I am just going to remove those lines I think

#

I tested all 3 individually and they all cause the error

odd grove
#

uff, it will work worse without noise suppression..

stiff tundra
#

Hmmm

odd grove
#

Alright, i had no such lines actually

#

I mean these

--mic-auto-gain 7 \
    --mic-noise-suppression 3 \ 
#

I added, and it gives same error

#

Remove that

stiff tundra
#

But leave in the multiplier?

odd grove
#

well, i'll check what official docs saying

odd grove
#

i had id all the time

#

Alright, it's definitely noise-suppression.

#

Huh

#

So i removed noise-suppression line and TYPED it in again by hands, and it's working now...

stiff tundra
#

Interesting

odd grove
#

Looks like in my case, copy-pasting pasted some invisible Unicode character, that was giving the error.

#

Now i have noise suppression and mic gain

stiff tundra
#

Does a Pi zero W have the power to run both of these? I finally got it all working but when the assistant responds, it gets very buggy and laggy.

#

I have it connected to an ethernet hat so network is not the issue

odd grove
stiff tundra
#

Snapcast and Wyoming

#

I am using PoE for power

stiff tundra
#

Sorry, not power electricity but power computation

odd grove
#

Yeeeah, when i used snapcast with pi zero 2w and Wyoming - i had very bad experience, actually.

#

So i just made everything from scratch, and didn't do that enhancements

stiff tundra
#

Do you have any sort of tutorial you followed? Very interested in getting this properly working

odd grove
stiff tundra
#

What about for audio streaming?