Skip to content

Commit 796ebb2

Browse files
Remove last trace of librosa in tutorials (#4029)
Co-authored-by: Sam Anklesaria <[email protected]>
1 parent 15c15bb commit 796ebb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/tutorials/audio_feature_extractions_tutorial.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def plot_spectrogram(specgram, title=None, ylabel="freq_bin", ax=None):
7575
if title is not None:
7676
ax.set_title(title)
7777
ax.set_ylabel(ylabel)
78-
ax.imshow(librosa.power_to_db(specgram), origin="lower", aspect="auto", interpolation="nearest")
78+
power_to_db = T.AmplitudeToDB("power", 80.0)
79+
ax.imshow(power_to_db(specgram), origin="lower", aspect="auto", interpolation="nearest")
7980

8081

8182
def plot_fbank(fbank, title=None):

0 commit comments

Comments
 (0)