- Enhance code to check if Aubio, Yaafe and Vamp host are available
- Corresponding processors should not be shown in processors list
- TimeSide can now be installed without all or any of these librairies
- Tests ands Doctests will passed (for doctest I had to skip some new server sub-modules)
-# -*- coding: utf-8 -*-
-from __future__ import absolute_import
-
-# ----- Load external libraries ------
-# Aubio
-try:
- WITH_AUBIO = True
- import aubio
-except ImportError:
- WITH_AUBIO = False
-else:
- del aubio
-
-# Yaafe
-try:
- WITH_YAAFE = True
- import yaafelib
-except ImportError:
- WITH_YAAFE = False
-else:
- del yaafelib
-
-# Vamp Plugins
-try:
- from . vamp_plugin import VampSimpleHost
- VampSimpleHost.SimpleHostProcess(['-v'])
- WITH_VAMP = True
-except OSError:
- WITH_VAMP = False
from timeside.analyzer.core import Analyzer
from timeside.api import IAnalyzer
import timeside
-#from timeside.analyzer import WITH_YAAFE
-WITH_YAAFE = True
-if WITH_YAAFE:
- from yaafe import Yaafe
- import yaafelib
+
+import yaafelib
import numpy as N
import pickle
import os.path