skeletons are back in the closet
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
import logging
 | 
			
		||||
import sentry_sdk
 | 
			
		||||
from sentry_sdk.integrations.logging import LoggingIntegration
 | 
			
		||||
import config
 | 
			
		||||
from utils import config
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
Main Entrypoint
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,2 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
from .soundpreprocessor import SoundPreProcessor
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										23
									
								
								src/preprocessor/soundpreprocessor.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/preprocessor/soundpreprocessor.py
									
									
									
									
									
										Normal 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
 | 
			
		||||
@@ -0,0 +1,2 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
from .soundsender import SoundSender
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										23
									
								
								src/sender/soundsender.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/sender/soundsender.py
									
									
									
									
									
										Normal 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
 | 
			
		||||
@@ -0,0 +1,2 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
from .soundsensor import SoundSensor
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										23
									
								
								src/sensor/soundsensor.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/sensor/soundsensor.py
									
									
									
									
									
										Normal 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
 | 
			
		||||
@@ -0,0 +1,2 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
from .soundsignalprocessor import SoundSignalProcessor
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										23
									
								
								src/signal_processor/soundsignalprocessor.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/signal_processor/soundsignalprocessor.py
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										2
									
								
								src/utils/__init__.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
from .config import SENTRY_DSN, RELEASE_ID, RELEASEMODE
 | 
			
		||||
		Reference in New Issue
	
	Block a user