playsound


Method 1: Using playsound module. Run the following command to install the packages: pip install playsound. The playsound module contains only a single function named playsound (). It requires one argument: the path to the file with the sound we have to play. It can be a local file, or a URL.