Merge pull request #691 from PaddlePaddle/bugfix

fix audio shape bug for audio len
pull/692/head
Hui Zhang 3 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)
# audio
audios.append(audio) # [T, D]
audio_lens.append(audio.shape[1])
audio_lens.append(audio.shape[0])
# text
# for training, text is token ids
# else text is string, convert to unicode ord

Loading…
Cancel
Save