Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/play_audio.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/play_audio.py b/utils/play_audio.py
index 3320b41..7014721 100644
--- a/utils/play_audio.py
+++ b/utils/play_audio.py
@@ -67,11 +67,9 @@ def play_audio_from_file(file_path, queue=False):
else:
Gst.init(None)
- _logger.debug("filesrc location=%s ! decodebin !" \
- " autoaudiosink" % (file_path,))
- play_audio_from_file.player = Gst.parse_launch ( \
- "filesrc location=%s ! decodebin !" \
- " autoaudiosink" % (file_path,))
+ play_audio_from_file.player = Gst.parse_launch (
+ 'filesrc location=%s ! oggdemux ! vorbisdec ! ' \
+ 'audioconvert ! alsasink' % (file_path))
if not play_audio_from_file.player:
_logger.warning('unable to play audio file %s' % (file_path))