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_amplitude
- librosa.db_to_amplitude(S_db, *, ref=1.0)[source]
Convert a dB-scaled spectrogram to an amplitude spectrogram.
This effectively inverts
amplitude_to_db
:db_to_amplitude(S_db) ~= 10.0**(0.5 * S_db/10 + log10(ref))
- Parameters:
- S_dbnp.ndarray
dB-scaled spectrogram
- refnumber > 0
Optional reference power.
- Returns:
- Snp.ndarray
Linear magnitude spectrogram
Notes
This function caches at level 30.