Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing happens? #20

Open
deadsalm0 opened this issue Nov 28, 2023 · 5 comments
Open

Nothing happens? #20

deadsalm0 opened this issue Nov 28, 2023 · 5 comments

Comments

@deadsalm0
Copy link

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
Copy link

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
Copy link

olskar commented Jan 10, 2024

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
Copy link
Owner

@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
Copy link

olskar commented Jan 12, 2024

@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
Copy link

olskar commented Jan 12, 2024

Or maybe is possible in here?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants