nnmnkwii.preprocessing.preemphasis¶
-
nnmnkwii.preprocessing.
preemphasis
(x, coef=0.97)[source]¶ Pre-emphasis
- Parameters
x (1d-array) – Input signal.
coef (float) – Pre-emphasis coefficient.
- Returns
Output filtered signal.
- Return type
array
See also
Examples
>>> from nnmnkwii.util import example_audio_file >>> from scipy.io import wavfile >>> fs, x = wavfile.read(example_audio_file()) >>> x = x.astype(np.float64) >>> from nnmnkwii import preprocessing as P >>> y = P.preemphasis(x, coef=0.97) >>> assert x.shape == y.shape