'superimpose' method in 'data_utils/audio.py'
Created by: yangliu2
I'm trying to use 'superimpose' method in 'data_utils/audio.py' to combine two AudioSegment, clean audio segment and noise segment.
I'm getting the error "TypeError: Cannot add segments of different type: <class 'data_utils.audio.AudioSegment'> and <class 'data_utils.audio.AudioSegment'>."
They are the same object type and same size, except the numbers are different.
So I'm not sure if I'm using it correctly.
https://github.com/PaddlePaddle/DeepSpeech/blob/4bf526e78d8531551fce1f4d8bfb119e297812d7/data_utils/audio.py#L270
If I took out the 'if isinstance' statement on line 270 of source code, it seems to work fine. But don't want to modify your source code.