File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040print ("Sample rate of waveform: {}" .format (sample_rate ))
4141
4242plt .figure ()
43- plt .plot (waveform .transpose ( 0 , 1 ).numpy ())
43+ plt .plot (waveform .t ( ).numpy ())
4444
4545
4646######################################################################
@@ -209,7 +209,7 @@ def normalize(tensor):
209209print ("Shape of spectrogram: {}" .format (specgram .size ()))
210210
211211plt .figure ()
212- plt .imshow (specgram .transpose ( 0 , 1 ).numpy (), cmap = 'gray' )
212+ plt .imshow (specgram .t ( ).numpy (), cmap = 'gray' )
213213
214214
215215######################################################################
@@ -222,7 +222,7 @@ def normalize(tensor):
222222print ("Shape of fbank: {}" .format (fbank .size ()))
223223
224224plt .figure ()
225- plt .imshow (fbank .transpose ( 0 , 1 ).numpy (), cmap = 'gray' )
225+ plt .imshow (fbank .t ( ).numpy (), cmap = 'gray' )
226226
227227
228228######################################################################
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ Audio
114114
115115.. customgalleryitem ::
116116 :figure: /_static/img/audio_preprocessing_tutorial_waveform.png
117- :tooltip: Preprocessing with Torchaudio Tutorial
117+ :tooltip: Preprocessing with torchaudio Tutorial
118118 :description: :doc: `beginner/audio_preprocessing_tutorial `
119119
120120.. raw :: html
You can’t perform that action at this time.
0 commit comments