Caution

You're reading an old version of this documentation. If you want up-to-date information, please have a look at 0.10.2.

librosa.db_to_power

librosa.db_to_power(S_db, ref=1.0)[source]

Convert a dB-scale spectrogram to a power spectrogram.

This effectively inverts power_to_db:

db_to_power(S_db) ~= ref * 10.0**(S_db / 10)
Parameters:
S_dbnp.ndarray

dB-scaled spectrogram

refnumber > 0

Reference power: output will be scaled by this value

Returns:
Snp.ndarray

Power spectrogram

Notes

This function caches at level 30.