diff --git a/birbnetes_iot_platform_raspberry/playback_stuff.py b/birbnetes_iot_platform_raspberry/playback_stuff.py index 037aaa7..cc694ad 100644 --- a/birbnetes_iot_platform_raspberry/playback_stuff.py +++ b/birbnetes_iot_platform_raspberry/playback_stuff.py @@ -1 +1,12 @@ -import alsaaudio +from playsound import playsound + + +class BirbnetesIoTPlatformPlaybackDriver: + + @classmethod + def init(cls): + pass + + @classmethod + def play_audio(cls, audiofile: str): + playsound(audiofile) diff --git a/requirements.txt b/requirements.txt index 2943951..2de630e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ RPi.GPIO -pyalsaaudio \ No newline at end of file +pyalsaaudio +playsound \ No newline at end of file