The sound parameter to PlaySound() is a memory image of a WAV file, as a bytes-like object.
winsound/SND_MEMORY
SND_MEMORY