# This worked for me ... though I needed to install a library. # following https://realpython.com/playing-and-recording-sound-python/ # install simpleaudio with "pip install simpleaudio" # # google for example "audio file beep" to find sound files # import simpleaudio as sa beep = sa.WaveObject.from_wave_file('beep.wav') beep.play().wait_done() # On a mac you can also do this: # import os # os.system("say hello") # And on windows there's a winsound library. #