]> git.parisson.com Git - timeside.git/commitdiff
LimsiSad: add a default value for parameter sad_model
authorThomas Fillon <thomas@parisson.com>
Tue, 11 Mar 2014 10:27:29 +0000 (11:27 +0100)
committerThomas Fillon <thomas@parisson.com>
Tue, 11 Mar 2014 10:27:29 +0000 (11:27 +0100)
timeside/analyzer/limsi_sad.py

index 35c93b764d57b61298eff2cdecf3f9109b2290a2..5586aad607089889c2c4425b95b763b5ce96771a 100644 (file)
@@ -53,16 +53,16 @@ class LimsiSad(Analyzer):
     """
     Limsi Speech Activity Detection Systems
     LimsiSad performs frame level speech activity detection based on GMM models
-    For each frame, it computes the log likelihood difference between a speech model and a non speech model. 
+    For each frame, it computes the log likelihood difference between a speech model and a non speech model.
     The highest is the estimate, the largest is the probability that the frame corresponds to speech.
     The initialization of the analyzer requires to chose a model between 'etape' and 'maya'
     'etape' models were trained on data distributed in the framework of the ETAPE campaign (http://www.afcp-parole.org/etape.html)
     'maya' models were obtained on data collected by EREA – Centre Enseignement et Recherche en Ethnologie Amerindienne
     """
     implements(IAnalyzer)
-    
 
-    def __init__(self, sad_model):
+
+    def __init__(self, sad_model='etape'):
         """
         Parameters:
         ----------
@@ -79,7 +79,7 @@ class LimsiSad(Analyzer):
         spec.addFeature('mfccd1: MFCC CepsIgnoreFirstCoeff=0 blockSize=1024 stepSize=256 > Derivate DOrder=1')
         spec.addFeature('mfccd2: MFCC CepsIgnoreFirstCoeff=0 blockSize=1024 stepSize=256 > Derivate DOrder=2')
         spec.addFeature('zcr: ZCR blockSize=1024 stepSize=256')
-        parent_analyzer = Yaafe(spec)        
+        parent_analyzer = Yaafe(spec)
         self.parents.append(parent_analyzer)
 
         # informative parameters