Merge pull request #691 from PaddlePaddle/bugfix

fix audio shape bug for audio len
pull/1091/head
Hui Zhang 4 years ago committed by GitHub
commit abf7fa5518

@ -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

Loading…
Cancel
Save