From 406e20303c491471c2356fe5a087d0c27b3b2a4c Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Fri, 3 Oct 2014 15:26:19 +0200 Subject: [PATCH] fix(limsi_sad): fix the last fix again --- timeside/analyzer/limsi_sad.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/timeside/analyzer/limsi_sad.py b/timeside/analyzer/limsi_sad.py index cfc1612..1311f44 100644 --- a/timeside/analyzer/limsi_sad.py +++ b/timeside/analyzer/limsi_sad.py @@ -30,6 +30,10 @@ import numpy as np import pickle import os.path +# Require Yaafe +if not timeside._WITH_YAAFE: + raise ImportError('yaafelib must be missing') + class GMM: """ @@ -149,11 +153,7 @@ class LimsiSad(Analyzer): 'mfccd1: MFCC CepsIgnoreFirstCoeff=0 blockSize=1024 stepSize=256 > Derivate DOrder=1', 'mfccd2: MFCC CepsIgnoreFirstCoeff=0 blockSize=1024 stepSize=256 > Derivate DOrder=2', 'zcr: ZCR blockSize=1024 stepSize=256'] - try: - yaafe_analyzer = get_processor('yaafe') - except timeside.exceptions.PIDError as e: - raise ImportError(e.message + '.yaafelib must be missing') - + yaafe_analyzer = get_processor('yaafe') self.parents['yaafe'] = yaafe_analyzer(feature_plan=feature_plan, input_samplerate=16000) -- 2.39.5