diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-01-08 14:27:35 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-01-08 14:27:35 (GMT) |
commit | 717f70cbbe04e7b8b0f474ae5f35616464078911 (patch) | |
tree | 6d71efa7c02d33d67654450f588fa812558bf96f | |
parent | be9ab80012a94588c156a0927229cc4b32787959 (diff) |
fix stream to work in Sugar
-rw-r--r-- | utils/play_audio.py | 8 |
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)) |