]> git.parisson.com Git - timeside-diadems.git/commitdiff
Add docstring to analyzers
authorThomas Fillon <thomas@parisson.com>
Mon, 27 Jan 2014 15:27:21 +0000 (15:27 +0000)
committerThomas Fillon <thomas@parisson.com>
Mon, 27 Jan 2014 15:27:21 +0000 (15:27 +0000)
timeside/analyzer/irit_speech_4hz.py
timeside/analyzer/irit_speech_entropy.py

index 9f5eadb3ab1706011930c8ce83f704dcaec3f213..a8d12c33cd473a7be581431653d1eb1d64486d51 100644 (file)
@@ -30,9 +30,7 @@ from scipy.signal import firwin, lfilter
 
 
 class IRITSpeech4Hz(Analyzer):
-    implements(IAnalyzer)
-    '''
-    Segmentor based on the analysis of the 4Hz energy modulation.
+    '''Speech Segmentor based on the 4Hz energy modulation analysis.
 
     Properties:
         - energy4hz            (list)          : List of the 4Hz energy by frame for the modulation computation
@@ -47,6 +45,8 @@ class IRITSpeech4Hz(Analyzer):
         - modulLen                     (float)         : Length (in second) of the modulation computation window
     '''
 
+    implements(IAnalyzer)
+
     @interfacedoc
     def setup(self, channels=None, samplerate=None, blocksize=None,
               totalframes=None):
index fe3e1ebcdf804ec977e02abc057445099143eda4..d8eb0453092552b27a55f8e1c8262b3658662f5f 100644 (file)
@@ -29,6 +29,8 @@ from scipy.ndimage.morphology import binary_opening
 
 
 class IRITSpeechEntropy(Analyzer):
+    """Speech Segmentor based on Entropy analysis."""
+
     implements(IAnalyzer)
 
     @interfacedoc