diff options
-rw-r--r-- | utils/play_audio.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/play_audio.py b/utils/play_audio.py index 26ee031..b3c0728 100644 --- a/utils/play_audio.py +++ b/utils/play_audio.py @@ -43,10 +43,9 @@ def play_audio_from_file(file_path, queue=False): play_audio_from_file.player.set_state(gst.STATE_NULL) - play_audio_from_file.player = gst.parse_launch ( \ - "filesrc location=%s" \ - " ! oggdemux ! vorbisdec !" \ - "audioconvert ! alsasink" % (file_path,)) + play_audio_from_file.player = gst.parse_launch ( + "filesrc location=%s ! decodebin !" \ + " autoaudiosink" % (file_path,)) if not play_audio_from_file.player: _logger.warning('unable to play audio file %s' % (file_path)) |