Place the folder inside /home/{your_user}/.local/share/kwin/scripts/
Paplay is used to play the sound.
1) Inside kwin scripts just activate the script Win audio.
It's important to observe that i made this script for my personal use, so any problem just contact me, and i will try to help.