From 0b5e914753f99ab9a080ff44c1a3cafe5d5f6a31 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Mon, 16 Dec 2013 13:56:11 +0100 Subject: [PATCH] analyzer/yaafe.py : Fix bug in result frame_metadata --- timeside/analyzer/yaafe.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.5