HoneyTian commited on
Commit
57f4195
·
1 Parent(s): 7b82434
Files changed (2) hide show
  1. main.py +1 -1
  2. requirements.txt +1 -0
main.py CHANGED
@@ -96,7 +96,7 @@ def generate_spectrogram2(signal: np.ndarray, sample_rate: int = 8000, title: st
96
  mag = np.abs(librosa.stft(signal))
97
  # mag shape: [f, t]
98
  spectrum = mag
99
- # spectrum shape: [t, f]
100
 
101
  spectrum = np.log(spectrum)
102
 
 
96
  mag = np.abs(librosa.stft(signal))
97
  # mag shape: [f, t]
98
  spectrum = mag
99
+ # spectrum shape: [f, t]
100
 
101
  spectrum = np.log(spectrum)
102
 
requirements.txt CHANGED
@@ -13,3 +13,4 @@ openpyxl==3.1.5
13
  aiobotocore==2.12.1
14
  oss2==2.19.1
15
  tenacity==8.3.0
 
 
13
  aiobotocore==2.12.1
14
  oss2==2.19.1
15
  tenacity==8.3.0
16
+ matplotlib==3.10.0