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

OSError: [Errno 2] No such file or directory #11

Open
akshat9425 opened this issue Oct 11, 2018 · 1 comment
Open

OSError: [Errno 2] No such file or directory #11

akshat9425 opened this issue Oct 11, 2018 · 1 comment

Comments

@akshat9425
Copy link

akshat9425 commented Oct 11, 2018

hi,
i ran below lines of code inside python shell

from piwho import recognition
recog = recognition.SpeakerRecognizer()
name = []
name = recog.identify_speaker('/home/user/piwho2_virtual/akshat1.wav')

Issue:
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

But in actual file exists see

(mypython) user@user-OptiPlex-3020M:~/piwho2_virtual$ ls
10:17:49:21.wav 11:11:31:03.wav gender testing.py
11:11:18:49.wav 11:11:33:32.wav mypython test.py
11:11:30:49.wav akshat1.wav speakers.txt

One more query i have: how would i got .gzbin folder

please tell me what to do?

@Adirockzz95
Copy link
Owner

Adirockzz95 commented Oct 13, 2018

You need to train the first model before recognition. Take a look at training docs.
Try this:
recog = recognition.SpeakerRecognizer() recog.train_new_model('/home/user/piwho2_virtual/akshat1.wav', 'Akshat')
this should create a .gizbin file in the current directory.

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

2 participants