Error ln 1422 sr.py substring not found
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
Hi,
I'm trying to use voiceid for speaker recognition, identifying speakers in
recordings of the Colorado House of Representatives and Senate. Thanks for the
library. I know it represents a ton of work. I have everything setup and
running on a Ubuntu ec2 instance. I've recently started getting the following
error when trying to identify with previously created voice models:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/lkacenjar/test/voiceid/db.py", line 477, in __match_voice
out[speakerkey] = self.match_voice(wave_file, speaker, gender)
File "/home/lkacenjar/test/voiceid/db.py", line 376, in match_voice
gender + '.' + identifier + '.gmm', cls)
File "/home/lkacenjar/test/voiceid/sr.py", line 1422, in manage_ident
idx = line.index('score:' + speaker) + len('score:' + speaker + " = ")
ValueError: substring not found
If I wrap line 1422-1427 in a try/catch it finishes, but then makes no matches.
What can I do to get this working? Thanks.
Original issue reported on code.google.com by lkace...@gmail.com
on 8 May 2015 at 8:39
Google Code Exporter commented
Hi,
It seems a problem of the underlying library LIUMSpkDiarization, you should
check the file opened in line 1412
seg_f = open("%s.ident.%s.seg" % (filebasename, gmm), "r")
Maybe it is malformed.
Sorry for the late answer, the project is in fact abandoned.
Original comment by maurome...@gmail.com
on 20 May 2015 at 8:00