skeletons are back in the closet
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2020-08-24 20:38:38 +02:00
parent 7334000eb8
commit 0956477831
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
11 changed files with 103 additions and 1 deletions

View File

@ -2,7 +2,7 @@
import logging
import sentry_sdk
from sentry_sdk.integrations.logging import LoggingIntegration
import config
from utils import config
"""
Main Entrypoint

View File

@ -0,0 +1,2 @@
#!/usr/bin/env python3
from .soundpreprocessor import SoundPreProcessor

View File

@ -0,0 +1,23 @@
#!/usr/bin/env python3
from .abcpreprocessor import AbcPreProcessor
"""
Abstract base class for Sender
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, Birbnetes Team"
__module_name__ = "soundpreprocessor"
__version__text__ = "1"
class SoundPreProcessor(AbcPreProcessor):
"""
SoundPreProcessor class, responsible for detecting birb chirps in sound sample.
"""
def preprocesssignal(self, signal):
"""
Classify a sound sample.
:return:
"""
pass

View File

@ -0,0 +1,2 @@
#!/usr/bin/env python3
from .soundsender import SoundSender

23
src/sender/soundsender.py Normal file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env python3
from .abcsender import AbcSender
"""
Send a sound sample
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, Birbnetes Team"
__module_name__ = "soundsender"
__version__text__ = "1"
class SoundSender(AbcSender):
"""
SoundSender class, responsible for sending sound samples to the cloud.
"""
def sendvalue(self, value, decision):
"""
Send a sound sample to the cloud.
:return:
"""
pass

View File

@ -0,0 +1,2 @@
#!/usr/bin/env python3
from .soundsensor import SoundSensor

23
src/sensor/soundsensor.py Normal file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env python3
from .abcsensor import AbcSensor
"""
Sound sensor high level API
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, Birbnetes Team"
__module_name__ = "soundsensor"
__version__text__ = "1"
class SoundSensor(AbcSensor):
"""
SoundSensor class. Responsible for sound retrieval from any microphones present.
"""
def getvalue(self):
"""
Retrieve a 5 second sound clip from a microphone.
:return:
"""
pass

View File

@ -0,0 +1,2 @@
#!/usr/bin/env python3
from .soundsignalprocessor import SoundSignalProcessor

View File

@ -0,0 +1,23 @@
#!/usr/bin/env python3
from .abcsignalprocessor import AbcSignalProcessor
"""
Abstract base class for signalprocessor
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, Birbnetes Team"
__module_name__ = "soundsignalprocessor"
__version__text__ = "1"
class SoundSignalProcessor(AbcSignalProcessor):
"""
SoundSignalProcessor class, responsible for handling the sound signal processor pipeline.
"""
def processcurrentsignal(self):
"""
Process a sound sample.
:return:
"""
pass

2
src/utils/__init__.py Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env python3
from .config import SENTRY_DSN, RELEASE_ID, RELEASEMODE