i was playing with sounds.
this function controls the computer beep speaker and fluxuates very high pitch sounds, my dog hates it.
import winsound
#computer beep
# val1 is freq 37-32767, val2 is time in milliseconds
while True:
for eachsound in range(12000,14000,100):
winsound.Beep(eachsound, 100)
for eachsound in range(14000,12000,100):
winsound.Beep(eachsound, 100)