This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user