mindspore.dataset.audio.DeemphBiquad
- class mindspore.dataset.audio.DeemphBiquad(sample_rate)[source]
Design two-pole deemph filter for audio waveform of dimension of (…, time).
- Parameters
sample_rate (int) – sampling rate of the waveform, e.g. 44100 (Hz), the value must be 44100 or 48000.
Examples
>>> import numpy as np >>> >>> waveform = np.array([[2.716064453125e-03, 6.34765625e-03], [9.246826171875e-03, 1.0894775390625e-02]]) >>> numpy_slices_dataset = ds.NumpySlicesDataset(data=waveform, column_names=["audio"]) >>> transforms = [audio.DeemphBiquad(44100)] >>> numpy_slices_dataset = numpy_slices_dataset.map(operations=transforms, input_columns=["audio"])