I trained a kaldi tdnn model and and modified it for gentle format
I tried running align.py by it causes the following error ! Can anyone help me
with this?
/var/folders/bn/gms2j96s50x1ts27vgwp1jfm0000gp/T/tmpv3dkq1cp_HCLG.fst
ERROR:gentle.standard_kaldi:hclg_path does not exist: /var/folders/bn/gms2j96s50x1ts27vgwp1jfm0000gp/T/tmpv3dkq1cp_HCLG.fst
/Users/adminuser/Documents/gentle/gentle/exp/tdnn_7b_chain_online/
/var/folders/bn/gms2j96s50x1ts27vgwp1jfm0000gp/T/tmpv3dkq1cp_HCLG.fst
ERROR:gentle.standard_kaldi:hclg_path does not exist: /var/folders/bn/gms2j96s50x1ts27vgwp1jfm0000gp/T/tmpv3dkq1cp_HCLG.fst
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/align.py", line 58, in
result = aligner.transcribe(wavfile, progress_cb=on_progress, logging=logging)
File "/Users/adminuser/Documents/gentle/gentle/gentle/forced_aligner.py", line 24, in transcribe
words, duration = self.mtt.transcribe(wavfile, progress_cb=progress_cb)
File "/Users/adminuser/Documents/gentle/gentle/gentle/transcriber.py", line 51, in transcribe
pool.map(transcribe_chunk, range(n_chunks))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/Users/adminuser/Documents/gentle/gentle/gentle/transcriber.py", line 38, in transcribe_chunk
k.push_chunk(buf)
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 39, in push_chunk
self._p.stdin.write(buf) #arr.tostring())
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <function Kaldi.del at 0x7fcdccd76c10>
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 79, in del
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 73, in stop
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 30, in _cmd
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <function Kaldi.del at 0x7fcdccd76c10>
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 79, in del
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 73, in stop
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 30, in _cmd
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <function Kaldi.del at 0x7fcdccd76c10>
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 79, in del
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 73, in stop
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 30, in _cmd
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <function Kaldi.del at 0x7fcdccd76c10>
Traceback (most recent call last):
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 79, in del
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 73, in stop
File "/Users/adminuser/Documents/gentle/gentle/gentle/standard_kaldi.py", line 30, in _cmd
BrokenPipeError: [Errno 32] Broken pipe
Initially I got a called subprocess error I tried to decode the output by changing line 116 in language_model.py to
try:
devnull = open(os.devnull, 'wb')
print([MKGRAPH_PATH,
proto_langdir,
txt_fst_file.name,
hclg_filename])
sub_result = subprocess.check_output([MKGRAPH_PATH,
proto_langdir,
txt_fst_file.name,
hclg_filename],
stderr=devnull)
except subprocess.CalledProcessError as e:
sub_result = e.output.decode()