dcase_models.data.WhiteNoise¶
-
class
dcase_models.data.WhiteNoise(snr)[source]¶ Bases:
objectImplements white noise augmentation.
The structure is similar to sox.Transformer in order to keep compatibility with sox.
Parameters: - snr : float
Signal to noise ratio.
Methods
__init__(snr)Initialize the white noise. build(file_origin, file_destination)Add noise to the file_origin and save the result in file_destination.