Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Python :: how to get the angle of mouse from the center 
Python :: python flask replit 
Python :: multipl excel sheets in pandas 
Python :: matplotlib set dpi 
Python :: add favicon fastapi 
Python :: pandas dataframe histogram 
Python :: how to get all file names in directory python 
Python :: convert pascal annotation to yolo 
Python :: how to clear the console python 
Python :: python create n*n matrix 
Python :: strptime python decimal seconds 
Python :: extract only year from date python 
Python :: Function to a button in tkinter 
Python :: python for looop array value and index 
Python :: Find the second lowest grade of any student(s) from the given names and grades of each student using lists 
Python :: pass argument to a py file 
Python :: python create file if not exists 
Python :: multiple args for pandas apply 
Python :: pandas select percentile 
Python :: sklearn version 
Python :: pandas predict average moving 
Python :: filter nulla values only pandas 
Python :: how to open cmd at specific location usng python 
Python :: static and media files in django 
Python :: regex email python 
Python :: python pandas csv to xlsx semicolon 
Python :: python shortest path of list of nodes site:stackoverflow.com 
Python :: what is the meaning of illiteral with base 10 
Python :: line number in logging python 
Python :: Python program to remove duplicate characters of a given string. 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =