Closed Andys280 closed 8 months ago
Maybe try to install
pip install -- user pyaudio
Maybe try to install
pip install -- user pyaudio
Can't run your command
admin@Guestbook:~ $ pip install -- user pyaudio
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Could not find a version that satisfies the requirement user
ERROR: No matching distribution found for user
Tried to change command from --user to --admin , no luck
Sry i had an error in the Syntax
Try pip install --user pyaudio
Sry i had an error in the Syntax Try
pip install --user pyaudio
Requirement already satisfied: pyaudio in /home/admin/.local/lib/python3.9/site-packages (0.2.14)
I ve installed multiple things and now it starts without errrors , but not working. i can t hear anything in the speakers and no recording is made. i ve even placed an "voicemaile.wav" file in sounds folder. Tested sound card with aplay commands ad works . What can be the problem now ?
What is the output from
journalctl -u audioGuestBook -f
Hey @s3b3n & @Andys280,
I've refactored and deployed a full rpi img with everything set up and tested as functional on my rotary phone.
I used git lfs to upload the .img.gz file so you'll need to install git lfs if you don't already have it and then after a git checkout dev
and git pull
do a git lfs pull
.
Can you please flash the rpi img on your rpi? If you are using the Raspberry Pi Imager you can select it as a custom .img:
username: admin password: password
and set up your wifi network accordingly
Once you've flashed the custom .img and have booted it up you can edit the config.yaml
and .asoundrc
files as necessary per my updated setup instructions.
Let me know how it goes, thanks!
@nickpourazima
For me it works flawlessly, thank you for the great work. One thing i personally would like to have is the option to configure the volume from every wav seperatly via config.yaml
So everyone can fine tune how loud the beep or the voicemai is.
Great work, i will buy you a coffe for this ;)
Thanks @s3b3n! Glad it worked for you!
I can modify the scripts to accommodate volume levels per wav file. I'll probably call amixer
prior to aplay
with whatever is specified in the config.yaml
. I'll track this new feature in a separate branch and keep you posted.
okay new problem here:
After reboot there is an aplay error: Mar 10 17:48:15 raspberrypi python3[558]: aplay: main:830: audio open error: No such file or directory Mar 10 17:48:15 raspberrypi python3[507]: ERROR:audioInterface:Error playing voicemail.wav: Command '['aplay', '/home/admin/rotary-phone-audio-guestbook/src/../sounds/voicemail.wav']' returned non-zero exit status 1. Mar 10 17:48:16 raspberrypi python3[559]: aplay: main:830: audio open error: No such file or directory Mar 10 17:48:16 raspberrypi python3[507]: ERROR:audioInterface:Error playing beep.wav: Command '['aplay', '/home/admin/rotary-phone-audio-guestbook/src/../sounds/beep.wav']' returned non-zero exit status 1. Mar 10 17:48:16 raspberrypi python3[507]: INFO:main:Recording started...
It seems that after a reboot the directory is wrong ....
i have no clue how this happened
Okay my fault i switched the power plug and the usb soundcard ports, the soundcard wasnt recognized, after switching erverything works for me
Hello . On a raspberry pi zero with freshly installed raspbian I clone the code, everything works ok in the installation, without errors. I answer the questions asked with the default answers and I receive the message that the installation completed successfully. I connected a switch to the gpio pin, but when I press it, nothing happens. I tried to run the command
aplay -l
. My audio card on the usb port is the second one listed, so I changed the aplay configuration, which for me can be found at the address/user/share/alsa/alsa.conf
(at the addresses indicated in the guide, I do not find any files).I run the command
sudo nano /usr/share/alsa/alsa.conf
and change the number from 0 to 1 on the following linesNow i run the command
sudo /etc/init.d/alsa-utils restart
but again, nothing works.This is what the log command shows me
Now I tried to install pydub locally and it installed succesfully with this command
pip install --user pydub
Now i get a new error and i don t know how to repair it