Caution
You're reading the documentation for a development version. For the latest released version, 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 values
- refnumber > 0
Optional reference amplitude.
- Returns:
- Snp.ndarray
Linear magnitude values
Notes
This function caches at level 30.