]> git.parisson.com Git - timeside.git/commitdiff
analyzer/yaafe.py : Fix bug in result frame_metadata
authorThomas Fillon <thomas@parisson.com>
Mon, 16 Dec 2013 12:56:11 +0000 (13:56 +0100)
committerThomas Fillon <thomas@parisson.com>
Mon, 16 Dec 2013 12:56:11 +0000 (13:56 +0100)
timeside/analyzer/yaafe.py

index 5e00a08dcb8e87e5289bde2f0f90d2d3b522307a..12fac5dbd6213161fe9da87f9e3169fa0c33d1c8 100644 (file)
@@ -112,6 +112,12 @@ class Yaafe(Analyzer):
             result.id_metadata.name += ' ' + featName
             # Read Yaafe Results
             result.data_object.value = self.yaafe_engine.readOutput(featName)
+
+            yaafe_metadata = self.yaafe_engine.getOutputs()[featName]
+            result.frame_metadata.blocksize = yaafe_metadata['frameLength']
+            result.frame_metadata.stepsize = yaafe_metadata['sampleStep']
+            result.frame_metadata.samplerate = yaafe_metadata['sampleRate']
+
             # Store results in Container
             if len(result.data_object.value):
                 self.process_pipe.results.add(result)