I attempted to play a.wav file with pyaudio. It works fine in Windows, but not in Ubuntu when another device is using sound.
and got this error:
The error is "IOError: [Errorno Invalid output device (no default output device)] -9996
Is there another way?
2
Answers
Did you try wxPython
as example:
and sound variable can be defined like this:
you can see this question as reference seems you have the same problem.
What's a cross platform way to play a sound file in python?
simply use simpleaudio