librosa.amplitude_to_db
ã®æå°dB㯠amin
ãã©ã¡ã¼ã¿ã§è¦å®ããã.
ããã©ã«ãå¤ã¯ amin=1e-05
ãããã¯dBã¨ãã¦ããã¤ã«ãªãã.
import librosa import numpy as np mel = np.array([[1.01*10**-5, 1.0*10**-5, 1.0*10**-6]]) dB = librosa.amplitude_to_db(mel, amin=1e-05, top_db=None) print(dB) # [[ -99.91357252 -100. -100. ]]
ã¨ããã㨠-100dB ãä¸éã®dB.
amplitudeã10ã®-5ä¹ãªã®ã§powerã®dBã¯20åãã¦-100dBãçè«éã.