提交 9c0b6c5b 编写于 作者: H Hui Zhang

fix audio shape bug for audio len

上级 718bd307
...@@ -271,7 +271,7 @@ class SpeechCollator(): ...@@ -271,7 +271,7 @@ class SpeechCollator():
utts.append(utt) utts.append(utt)
# audio # audio
audios.append(audio) # [T, D] audios.append(audio) # [T, D]
audio_lens.append(audio.shape[1]) audio_lens.append(audio.shape[0])
# text # text
# for training, text is token ids # for training, text is token ids
# else text is string, convert to unicode ord # else text is string, convert to unicode ord
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册