From: Thomas Fillon Date: Mon, 16 Dec 2013 12:56:11 +0000 (+0100) Subject: analyzer/yaafe.py : Fix bug in result frame_metadata X-Git-Tag: 0.5.2~3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0b5e914753f99ab9a080ff44c1a3cafe5d5f6a31;p=timeside.git analyzer/yaafe.py : Fix bug in result frame_metadata --- diff --git a/timeside/analyzer/yaafe.py b/timeside/analyzer/yaafe.py index 5e00a08..12fac5d 100644 --- a/timeside/analyzer/yaafe.py +++ b/timeside/analyzer/yaafe.py @@ -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)