wire it all together
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-08-25 01:40:09 +02:00
parent 5d9e815407
commit 15f369446c
8 changed files with 114 additions and 12 deletions

View File

@ -1,4 +1,7 @@
#!/usr/bin/env python3
from sensor import SoundSensor
from sender import SoundSender
from preprocessor import SoundPreProcessor
from .abcsignalprocessor import AbcSignalProcessor
"""
@ -15,9 +18,20 @@ class SoundSignalProcessor(AbcSignalProcessor):
"""
SoundSignalProcessor class, responsible for handling the sound signal processor pipeline.
"""
def __init__(self):
"""
Create dependency objects.
"""
self.soundsensor = SoundSensor()
self.soundpreprocessor = SoundPreProcessor()
self.soundsender = SoundSender()
def processcurrentsignal(self):
"""
Process a sound sample.
:return:
"""
pass
soundsample_name = self.soundsensor.getvalue()
sample_decision = self.soundpreprocessor.preprocesssignal(soundsample_name)
self.soundsender.sendvalue(soundsample_name, sample_decision)