Answers for "python playsound stop"

0

python playsound stop

# Stop the Sound via multiprocessing
import multiprocessing
from playsound import playsound

p = multiprocessing.Process(target=playsound, args=("file.mp3",))
p.start()
input("press ENTER to stop playback")
p.terminate()


# Source: https://stackoverflow.com/questions/57158779/how-to-stop-audio-with-playsound-module
Posted by: Guest on October-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language