Today I started building an Assist voice satellite, using a Pi 4B and Anker speakerphone, following the newer wyoming build procedure. The initial steps were taken from the Raspberry Pi Zero 2 W tutorial.
Unfortunately, running script/setup
failed on a same file error:
admin@pi:~/wyoming-satellite $ script/setup
Traceback (most recent call last):
File "/home/localadmin/wyoming-satellite/script/setup", line 14, in <module>
builder.create(_VENV_DIR)
File "/usr/lib/python3.11/venv/__init__.py", line 74, in create
self.setup_python(context)
File "/usr/lib/python3.11/venv/__init__.py", line 292, in setup_python
copier(context.executable, path)
File "/usr/lib/python3.11/venv/__init__.py", line 235, in symlink_or_copy
shutil.copyfile(src, dst)
File "/usr/lib/python3.11/shutil.py", line 236, in copyfile
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: '/usr/bin/python3' and '/home/localadmin/wyoming-satellite/.venv/bin/python3' are the same file
Anyone have a suggestion for how to get past this?
Or is this something I should somehow/somewhere open a ticket about?
Thanks.
I’m not sure you need to run script/setup
if you followed the Pi Zero tutorial, as the content of that script looks pretty much the same as one of the steps in that.
I just skipped that and went straight on to the script/run
part, and mine seems ok, but HA is not discovering it - I’m on 2023.11 and probably need to update to 2023.12.
You are correct Sir! Finally got around to working through the Pi Zero tutorial again, doing only the (applicable to me) steps on that page, and it was successful.
Unfortunately, it led to other issues, but that’s for a different post.
Thanks much!
Hi! I am trying to setup a satellite with pi zero 2 w and the ReSpeaker 2Mic HAT.
What I am trying to do differently is use a Bluetooth speaker, instead of 3.5mm jack (which has lousy sound quality).
So, I connected the speaker via Bluetooth and all the components work:
- I can record sound with the mic hat with:
arecord -D plughw:CARD=seeed2micvoicec,DEV=0 -d 10 -r 44100 -f cd test-mic.wav
I can play that wav file with:
paplay --device=bluez_sink.04_52_C7_A9_1C_89.a2dp_sink test-mic.wav
(I cannot use aplay because the output device is not seen there)
So my problem is when trying to run the satellite:
cd wyoming-satellite/
script/run \
--name 'my satellite' \
--uri 'tcp://0.0.0.0:10700' \
--mic-command 'arecord -r 16000 -c 1 -f S16_LE -t raw' \
--snd-command 'aplay -r 22050 -c 1 -f S16_LE -t raw'
I don’t know what should I put for snd-command, since I can’t use the aplay command
popliviustefan, have you solved this?
Just guessing, but I would suspect you could either use something like “aplay -D plughw:CARD=bluez_sink.04_52_C7_A9_1C_89.a2dp_sink” or just provide your paplay string to --snd-command.