https://github.com/ina-foss/inaSpeechSegmenter
我使用这套件去分割 mp3 单字档案
因为我mp3档案很多我是扫所有资料夹底下mp3档案用 inaSpeechSegmenter 分析
但我发现单音mp3 分析时候会出现错误, 下面档案是测试出现错误的单音mp3档案
http://www.mediafire.com/file/krfuk8wshq5jr2o/0021.mp3/file
下面是执行指令
ina_speech_segmenter.py -i 0021.mp3 -o out/
错误讯息我看不出来原因~
ValueError: `window_shape` is too large 有关系
下面是完整讯息
Traceback (most recent call last):
File "/home/shihyu/.local/bin/ina_speech_segmenter.py", line 63, in
<module>
seg2csv(seg(e), '%s/%s.csv' % (odir, base))
File
"/home/shihyu/.local/lib/python3.6/site-packages/inaSpeechSegmenter/segmenter.py",
line 174, in __call__
return self.segmentwav(tmpwav)
File
"/home/shihyu/.local/lib/python3.6/site-packages/inaSpeechSegmenter/segmenter.py",
line 148, in segmentwav
data21, finite = _get_patches(mspec[:, :21], 68, 2)
File
"/home/shihyu/.local/lib/python3.6/site-packages/inaSpeechSegmenter/segmenter.py",
line 69, in _get_patches
data = vaw(mspec, (w,h), step=step)
File
"/home/shihyu/.local/lib/python3.6/site-packages/skimage/util/shape.py", line
230, in view_as_windows
raise ValueError("`window_shape` is too large")
ValueError: `window_shape` is too large
谢谢