Can't get winsound.Beep to work
I am trying to make some Beep
noise with the command winsound.Beep
. However, when I use winsound.Beep(500, 500)
, I cannot hear anything. However, with winsound.MessageBeep
and winsound.PlaySound
I get sounds. Any ideas what I should be doing?
What I'm trying to do: I want to write a little practice for training intervals: the computer sounds the first tone, then the second tone, and you have to guess what the tone interval is. For this I need tones, tones for which I can set the frequency. I want to keep everything as simple as possible, any sound will sound. I do not want to collect a set of WAV files or anything else. I want to use a tone generator that I think is available on most sound cards. winsound.Beep seems to be something that can do this trick, but any other suggestions are greatly appreciated.
source to share
Are you sure you have a beep on your computer? Many of the recent computers remove the beep because it is annoying, and most computers today have a sound card to play WAV sound (another sound you can play).
You can also check if it is activated on this page
IMO, I think using a beep for things other than debugging is not a good idea.
EDIT
Mayby you can try this code to create sound using basic wav with synth algorythm
source to share