Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python create a pinging sound

On Windows, if you want to just make the computer make a beep sound:

import winsound
frequency = 2500  # Set Frequency To 2500 Hertz
duration = 1000  # Set Duration To 1000 ms == 1 second
winsound.Beep(frequency, duration)


The winsound.Beep() can be used wherever you want the beep to occur.
Comment

PREVIOUS NEXT
Code Example
Python :: how to get the value out of a dictionary python3 
Python :: How to round to 2 decimals with Python? 
Python :: make a gif with images python 
Python :: throw error in python 
Python :: access django server from another machine 
Python :: python read and write pdf data 
Python :: how to run terminal commands in python 
Python :: import django value 
Python :: matplotlib vertical line 
Python :: real hour in python 
Python :: mongodb aggregate group 
Python :: how to bulk update in mongodb using python 
Python :: python sort multiple lists based on sorting of single list 
Python :: how to run python program in sublime text 3 windows 
Python :: embed image in html from python 
Python :: if name 
Python :: python property 
Python :: Get Time from timestamp in python 
Python :: python recursively merge dictionaries 
Python :: python optional arguments 
Python :: find all subsequences of a list python 
Python :: make the first letter of a string upper case 
Python :: pandas count nans in column 
Python :: python import timezone 
Python :: How to select parts of a numpy array 
Python :: Download video from a direct URL with Python 
Python :: how to make convert numpy array to string in python 
Python :: python argparse lists flags as optional even with required 
Python :: create 8ball command in discord.py 
Python :: Find Files With a Certain Extension in the Directory and Its Subdirectories in Python 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =