Spaces:
Running
Running
alibabasglab
commited on
Commit
•
5029b02
1
Parent(s):
10306e3
Update scores/fwsegsnr.py
Browse files- scores/fwsegsnr.py +1 -1
scores/fwsegsnr.py
CHANGED
@@ -9,7 +9,7 @@ class FWSEGSNR(ScoreBasis):
|
|
9 |
|
10 |
def windowed_scoring(self, audios, score_rate):
|
11 |
if len(audios) != 2:
|
12 |
-
|
13 |
return fwsegsnr(audios[1], audios[0], score_rate)
|
14 |
|
15 |
def fwsegsnr(x, y, fs, frame_sz = 0.025, shift_sz= 0.01, win='hann', numband=23):
|
|
|
9 |
|
10 |
def windowed_scoring(self, audios, score_rate):
|
11 |
if len(audios) != 2:
|
12 |
+
return None
|
13 |
return fwsegsnr(audios[1], audios[0], score_rate)
|
14 |
|
15 |
def fwsegsnr(x, y, fs, frame_sz = 0.025, shift_sz= 0.01, win='hann', numband=23):
|