alibabasglab commited on
Commit
4c70144
1 Parent(s): 752eb29

Update scores/ssnr.py

Browse files
Files changed (1) hide show
  1. 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
- raise ValueError('SSNR needs a reference and a test signals.')
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):