mindspore.dataset.audio.RiaaBiquad

class mindspore.dataset.audio.RiaaBiquad(sample_rate)[源代码]

Apply RIAA vinyl playback equalization. Similar to SoX implementation.

Parameters

sample_rate (int) – sampling rate of the waveform, e.g. 44100 (Hz), can only be one of 44100, 48000, 88200, 96000.

Examples

>>> import numpy as np
>>>
>>> waveform = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float64)
>>> numpy_slices_dataset = ds.NumpySlicesDataset(data=waveform, column_names=["audio"])
>>> transforms = [audio.RiaaBiquad(44100)]
>>> numpy_slices_dataset = numpy_slices_dataset.map(operations=transforms, input_columns=["audio"])