File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -689,16 +689,12 @@ def spectrogram_batch(
689
689
if hop_length <= 0 :
690
690
raise ValueError ("hop_length must be greater than zero" )
691
691
692
- # Check the dimensions of the waveform
692
+ # Check the dimensions of the waveform , and if waveform is complex
693
693
for waveform in waveform_list :
694
694
if waveform .ndim != 1 :
695
695
raise ValueError (f"Input waveform must have only one dimension, shape is { waveform .shape } " )
696
-
697
- # Check if waveform is complex
698
- for waveform in waveform_list :
699
696
if np .iscomplexobj (waveform ):
700
697
raise ValueError ("Complex-valued input waveforms are not currently supported" )
701
-
702
698
# Center pad the waveform
703
699
if center :
704
700
padding = [(int (frame_length // 2 ), int (frame_length // 2 ))]
You can’t perform that action at this time.
0 commit comments