From bd9e4dedc86e4878360b6cf44dbf9b9e41a9c3d4 Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 29 Jul 2016 00:23:30 +0200 Subject: [PATCH] initial sox --- config/settings/settings.conf | 2 +- src/fenrir-package/sound/sox.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/settings/settings.conf b/config/settings/settings.conf index 12611c8b..f6fec82a 100644 --- a/config/settings/settings.conf +++ b/config/settings/settings.conf @@ -1,7 +1,7 @@ [sound] enabled=True -driver=gstreamer +driver=sox theme=default [speech] diff --git a/src/fenrir-package/sound/sox.py b/src/fenrir-package/sound/sox.py index 74ef061e..8dfaf944 100644 --- a/src/fenrir-package/sound/sox.py +++ b/src/fenrir-package/sound/sox.py @@ -1,12 +1,13 @@ #!/bin/python +import subprocess class sound(): def __init__(self): pass def playFrequence(self, frequence, duration, adjustVolume): pass - def playSoundFile(self, filePath): - pass + def playSoundFile(self, filePath, interrupt = True): + subprocess.call("play " + filePath, shell=True) def cancel(self): pass def setCallback(self, callback):