Open haha010508 opened 5 years ago
同问,也遇到这么个问题
我也是遇到这个问题
@HW140701 对于这个问题,我在montreal-forced-aligner中看到过一个解决办法:逐渐调大beam的值,直至合适为止,可以得到textgrid文件
/bin/speech-aligner --config=egs/cn_phn/conf/align.conf egs/cn_phn/data/wav.scp egs/cn_phn/data/text egs/cn_phn/data/out.ali ERROR (speech-aligner[5.4.215~4-f2b7]:Input():util/kaldi-io.cc:756) Error opening input stream res/tree
My setting : ubuntu16.04 cmake 3.9.1
@HW140701 对于这个问题,我在montreal-forced-aligner中看到过一个解决办法:逐渐调大beam的值,直至合适为止,可以得到textgrid文件
This works for me. Experiment as follows:
ffmpeg -i BAC009S0002W0122.wav -i BAC009S0002W0123.wav -filter_complex '[0:0][1:0]concat=n=2:v=0:a=1[out]' -map '[out]' merged.wav
merged merged.wav
also create a merged transcript called merged.txt
in run.sh, execute the following script
speech-aligner --config=conf/align.conf merged.lst merged.txt merged.out
(this should fail)
--beam=40 --retry-beam=80
(now it should work)
I also tested another audio file of 49 seconds. In order to finish align, the beam parameter has to be increased to 10240, and it runs much slower.
I guess that's why input audio must be a play list. By design the aligner is intended to process a list of sentences, each in a separate audio file, in which case a beam of 20 or 40 should be enough.
这是个什么问题?