Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #playsound #stop
ADD COMMENT
Topic
Name
8+9 =