DevMiser / DaVinci

DaVinci - The ChatGPT AI Virtual Assistant
150 stars 21 forks source link

Nothing happens? #20

Open deadsalm0 opened 7 months ago

deadsalm0 commented 7 months ago

Hi, thanks for the instructions, i tried to follow them as closely as possibile but nothing happens when i start the program, It Just stays blank for 5 minutes then goes back to the directory. I'm new to Raspberry so i must be doing something wrong, i'm using a USB headset as microphone/speaker, could this be the problem? Thank you so much.

fooberton commented 6 months ago

Hey I'm currently experiencing a similar problem where nothing happens when the program is launched. I think it has something to do with it not recognizing a wake word, so it might be an issue with the microphone or another software issue. Were you able to find a solution? Thanks in advance!

olskar commented 6 months ago

Currently investigating the same issue, audio records fine and plays fine so the mic is alright.

Also tried raising mic input with alsamixer but nothing still

DevMiser commented 6 months ago

@olskar - based upon your other issue with the pygame attribution error, it appears that you got past the "nothing happens" issue? If so, please share how you did it. Others - please make certain you follow the additional instructions in the Important - Please Read file on this repository. Also, in paragraph 6 under Prepare Your Raspberry Pi 4 to Run this Program, please note there are two blank spaces in the above command – one between "mv" and "/home" and one between ".ppn" and "/home". Be sure to include them. I hope this helps.

olskar commented 6 months ago

@DevMiser As I first step to investigate for people having "nothing happens" issue I would say instal demo with " sudo pip3 install pvporcupinedemo" and try to run that, it did not work for me.

I then "run porcupine_demo_mic --show_audio_devices" and saw that the default device was wrong.

In the demo it is possible to add argument --audio_device_index to choose device, but I dont think it is possible to choose device in the regular python code.

aplay -L gave me this: Device 0: Discard all samples (playback) or generate zero samples (capture)

So the DaVinci code is using device 0, and therefore it did not work.

olskar commented 6 months ago

Or maybe is possible in here?

    recorder = PvRecorder(device_index=-1, frame_length=512)
    recorder.start()