Files
iot-logic/src/sensor/soundsensor.py
Torma Kristóf 15f369446c
All checks were successful
continuous-integration/drone/push Build is passing
wire it all together
2020-08-25 01:40:09 +02:00

26 lines
634 B
Python

#!/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) -> str:
"""
Retrieve a 5 second sound clip from a microphone.
:return:
"""
# Recieve sound from microphone and save it to a file on the filesystem.
# Then return the filename
return "filename.wav"