mindspore.dataset.audio.Overdrive
- class mindspore.dataset.audio.Overdrive(gain=20.0, color=20.0)[source]
Apply overdrive on input audio.
- Parameters
Examples
>>> import numpy as np >>> >>> waveform = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32) >>> numpy_slices_dataset = ds.NumpySlicesDataset(data=waveform, column_names=["audio"]) >>> transforms = [audio.Overdrive()] >>> numpy_slices_dataset = numpy_slices_dataset.map(operations=transforms, input_columns=["audio"])