Added dynamic platform loader

This commit is contained in:
2021-11-19 02:18:58 +01:00
parent 8f976721ab
commit 6b47c3f555
8 changed files with 28 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ if not config.DISABLE_AI:
from pyAudioAnalysis import MidTermFeatures
import numpy
from birbnetes_iot_platform_raspberry import BirbnetesIoTPlatformStatusDriver
from utils import BirbnetesIoTPlatformStatusDriver
"""
Abstract base class for Sender
@@ -150,7 +150,7 @@ class SoundPreProcessorLegit(AbcPreProcessor):
class SoundPreProcessorDummy(AbcPreProcessor):
def __init__(self):
print("AI is disabled! Initializing dummy sound pre-processor...")
logging.info("AI is disabled! Initializing dummy sound pre-processor...")
def preprocesssignal(self, file_path) -> bool:
return True