Hi Terry,
A completely different and probably better way to play audio in Python
is by using GStreamer.
A while ago I wrote a python program to play sound effects using
GStreamer. I've had to re-create it for Python 3 as the original didn't
seem to just work on Ubuntu 16.04. I've attached a simple player program
which shows how to play, pause and seek to the beginning. Set the
filename and when running it press enter and it'll do the next step.
Personally I've only use it with FLAC files, but it should play anything
gstreamer can play.
This page was useful:
https://wiki.ubuntu.com/Novacut/GStreamer1.0
--
Andrew.
--
Next meeting: Bournemouth, Tuesday, 2016-12-06 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR