Implemented audio play

This commit is contained in:
Pünkösd Marcell 2020-09-30 00:15:17 +02:00
parent 6fccadf8fa
commit 4b6ce3e7e1
2 changed files with 14 additions and 2 deletions

View File

@ -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)

View File

@ -1,2 +1,3 @@
RPi.GPIO
pyalsaaudio
playsound