audioflux.utils.power_to_abs_db
- audioflux.utils.power_to_abs_db(X, fft_length=4096, is_norm=False, min_db=-80)
Convert power spectrogram to absolute decibel(dB) spectrogram
- Parameters
- X: np.ndarray [shape=(…, fre, time)]
Input array
- fft_length: int
fft length
- is_norm: bool
Whether to use normalization
- min_db: float
Minimum dB. Values smaller than min_db will be set to min_db
- Returns
- out: np.ndarray [shape=(…, fre, time)]
absolute dB array