You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I have an Ubuntu Server 23.04 installation on a Raspberry Pi with Python 3.11.2 installed with pip 23.0.1. I am running into a weird issue where I try to play a sound (with the code below) and the script freezes and I cannot CTRL+C to exit. It gets stuck at "playing sound" and doesn't go any further.
from playsound import playsound
print('playing sound')
playsound('./assets/sounds/System Sounds/button-beep.mp3')
print('played sound')
Help appreciated.
The text was updated successfully, but these errors were encountered:
playsound('./assets/sounds/System Sounds/button-beep.mp3', block=False) should fix the problem so that the program keeps running while the sound is being played. However, for me it results in my program running fine but no sound being played
Hello. I have an Ubuntu Server 23.04 installation on a Raspberry Pi with Python 3.11.2 installed with pip 23.0.1. I am running into a weird issue where I try to play a sound (with the code below) and the script freezes and I cannot CTRL+C to exit. It gets stuck at "playing sound" and doesn't go any further.
Help appreciated.
The text was updated successfully, but these errors were encountered: