Staging: this is not the live site, pydocs.org.
MS Windows Specific Services
winsound
Windows
The winsound module provides access to the basic sound-playing machinery provided by Windows platforms. It includes functions and several constants.
© Python Software Foundation. PSF License Version 2 · Official docs ↗
Symbols in winsound
b
- Beep
- Beep the PC’s speaker.
m
- MB_OK
- Play the SystemDefault sound.
- MessageBeep
- Call the underlying MessageBeep() function from the Platform API.
p
- PlaySound
- Call the underlying PlaySound() function from the Platform API.
s
- SND_ALIAS
- The sound parameter is a sound association name from the registry.
- SND_APPLICATION
- The sound parameter is an application-specific alias in the registry.
- SND_ASYNC
- Return immediately, allowing sounds to play asynchronously.
- SND_MEMORY
- The sound parameter to PlaySound() is a memory image of a WAV file, as a bytes-like object.
- SND_NODEFAULT
- If the specified sound cannot be found, do not play the system default sound.
- SND_NOSTOP
- Do not interrupt sounds currently playing.
- SND_NOWAIT
- Return immediately if the sound driver is busy.
- SND_PURGE
- Stop playing all instances of the specified sound.
- SND_SENTRY
- Triggers a SoundSentry event when the sound is played.
- SND_SYNC
- The sound is played synchronously.
- SND_SYSTEM
- Assign the sound to the audio session for system notification sounds.