Merge pull request #691 from PaddlePaddle/bugfix

fix audio shape bug for audio len
pull/692/head
Hui Zhang 4 years ago committed by GitHub
commit d1c280cce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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