Spaces:
Running
Running
alibabasglab
commited on
Commit
•
4c70144
1
Parent(s):
752eb29
Update scores/ssnr.py
Browse files- scores/ssnr.py +1 -1
scores/ssnr.py
CHANGED
@@ -8,7 +8,7 @@ class SSNR(ScoreBasis):
|
|
8 |
|
9 |
def windowed_scoring(self, audios, score_rate):
|
10 |
if len(audios) != 2:
|
11 |
-
|
12 |
return cal_SSNR(audios[0], audios[1], score_rate)
|
13 |
|
14 |
def cal_SSNR(ref_wav, deg_wav, srate=16000, eps=1e-10):
|
|
|
8 |
|
9 |
def windowed_scoring(self, audios, score_rate):
|
10 |
if len(audios) != 2:
|
11 |
+
return None
|
12 |
return cal_SSNR(audios[0], audios[1], score_rate)
|
13 |
|
14 |
def cal_SSNR(ref_wav, deg_wav, srate=16000, eps=1e-10):
|