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

Problem with Dependencies #Docker Support #6

Open
Balro76 opened this issue Nov 26, 2021 · 3 comments
Open

Problem with Dependencies #Docker Support #6

Balro76 opened this issue Nov 26, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers raspberrypi issues with raspberry pi deployment wake_word_generation

Comments

@Balro76
Copy link

Balro76 commented Nov 26, 2021

Hello
I left a comment on Reddit saying I would give it a go, and you said if I had a problem to log it here, so here I am, with a problem 😊

I seem to get stuck with pip3 install librosa
I get this error
Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
I can push on and get EfficientWord installed and working, if I say Alexa it says Yup I hear ya

The problem is then when I try to create my own wake word I run this command …
python3 -m eff_word_net.generate_reference
pi@raspberrypi:~ $ python3 -m eff_word_net.generate_reference
Paste Path of folder Containing audio files:/home/pi/wakewords
Paste Path of location to save *_ref.json :/home/pi/wakewords
Enter Wakeword Name :bender
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in run_code
exec(code, run_globals)
File "/home/pi/.local/lib/python3.7/site-packages/eff_word_net/generate_reference.py", line 80, in
input("Enter Wakeword Name :")
File "/home/pi/.local/lib/python3.7/site-packages/eff_word_net/generate_reference.py", line 47, in generate_reference_file
x,
= librosa.load(audio_file,sr=16000)
AttributeError: module 'librosa' has no attribute 'load'

My Problem is with librosa, I am not able to install it. I tried everything I could google but it will never install

How did you get around this problem ?

@TheSeriousProgrammer
Copy link
Contributor

TheSeriousProgrammer commented Dec 6, 2021

I see that you are using a raspberry pi

Consider generating the wakeword refernce file in x86_64 machine , cause librosa binaries are available for those machines making installations easier , then copy the wakeword reference file to your pi to start using it

generating wakeword reference file alone requires librosa(i.e to read the audio files) , currently working on a an update to remove librosa and use "wave" library in python

Sorry for the late reply though

@TheSeriousProgrammer TheSeriousProgrammer changed the title Problem with Dependencies Problem with Dependencies #Raspberry_Pi #Wakeword_Generation Dec 6, 2021
@TheSeriousProgrammer TheSeriousProgrammer changed the title Problem with Dependencies #Raspberry_Pi #Wakeword_Generation Problem with Dependencies Dec 6, 2021
@TheSeriousProgrammer TheSeriousProgrammer added enhancement New feature or request good first issue Good for newcomers raspberrypi issues with raspberry pi deployment wake_word_generation labels Dec 6, 2021
@TheSeriousProgrammer TheSeriousProgrammer self-assigned this Dec 24, 2021
@preachwebsite
Copy link

sudo+ssh://[email protected]:22/usr/bin/python -u /home/pi/test.py
Traceback (most recent call last):
File "/home/pi/test.py", line 2, in
from eff_word_net.streams import SimpleMicStream
File "/home/pi/eff_word_net/streams.py", line 1, in
import pyaudio
ModuleNotFoundError: No module named 'pyaudio'

How to solve this problem? And I can't install librosa either

@aman-17
Copy link
Contributor

aman-17 commented Mar 2, 2022

You need to install a few pre-requisites which are mentioned in the read.me, pyaudio is one of them :)

@TheSeriousProgrammer TheSeriousProgrammer changed the title Problem with Dependencies Problem with Dependencies #Docker Support Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers raspberrypi issues with raspberry pi deployment wake_word_generation
Projects
None yet
Development

No branches or pull requests

4 participants