Open hagenw opened 4 months ago
This error does not happen for the last non open-source version 0.12.2 of auglib
.
The error seems to happen only for the auglib.transform.BabbleNoise
transform, not when using auglib.transform.Mix
.
The problem is that we are not supposed to provide the speech list as an observe argument here, as it is internally transformed to an observe object anyway:
transform = auglib.transform.BabbleNoise(list(db.files))
We also state in the docstring that only a sequence and not an observe object is expected as input:
But as the code is simply stuck forever when providing an observe object, we might think raising an error in this case to avoid this.
When defining
If we now execute the following two statements, they return immediatly:
But when using the observe object as part of the transform definition, the print statement uses 100% CPU and never returns: