possible duplicate of https://raspberrypi.stackexchange.com/questions/7088/playing-audio-files-with-python found by searching for "play a sound with python on raspberry pi"
– Jaromanda XMar 21 '19 at 05:20
AJCoder, please let us know if you think that the Q&A linked above is not answering your question sufficiently. Also related where I have come to enjoy the workings of vlc with python-bindings to do just that.
– GhanimaMar 21 '19 at 11:36
Example with GPIO and pygame here: https://gpiozero.readthedocs.io/en/stable/recipes.html#gpio-music-box
– ben_nuttallMar 21 '19 at 11:53
vlc
with python-bindings to do just that. – Ghanima Mar 21 '19 at 11:36