XtractDenoiser#
- class ansys.sound.core.xtract.XtractDenoiser(input_signal=None, input_parameters=None)#
Denoise a signal using the Xtract algorithm.
See also
Examples
Denoise a signal and display the resulting denoised and noise signals.
>>> from ansys.sound.core.xtract import XtractDenoiser >>> denoiser = XtractDenoiser( ... input_signal=my_signal, ... input_parameters=my_denoiser_parameters ... ) >>> denoiser.process() >>> denoised_signal, noise_signal = denoiser.get_output() >>> denoiser.plot()
See also
- Extract tonal, transient, and noise components (Xtract)
Example demonstrating how to use Xtract to extract the various components of a signal.
Class instantiation takes the following parameters.
- Parameters:
- input_signal
FieldsContainer|Field, default:None One or more signals to denoise as a DPF fields container or field. When inputting a fields container, each signal (each field of the fields container) is processed individually.
- input_parameters
XtractDenoiserParametersm, default:None Structure that contains the parameters of the algorithm:
Noise PSD (Field): Power spectral density of the noise
This structure is of the
XtractDenoiserParameterstype. For more information, see this class.
- input_signal
Methods
Get the output of the denoising.
Get the output of the denoising as NumPy arrays.
Plot signals.
Apply denoising.
Attributes
Input parameters.
Input signal.
Output denoised signals.
Output noise signals.