Adirockzz95 / Piwho

Speaker recognition library based on MARF for raspberry pi and other SBCs.
MIT License
54 stars 20 forks source link

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

Open akshat9425 opened 5 years ago

akshat9425 commented 5 years ago

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 commented 5 years ago

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.