macos – Make a sound when a command is not found

How can I get zsh to play a sound when the command is not found?

Ex: I have the alias vpn to open my VPN from the terminal (zsh). If sometimes by mistake I type cpn instead of vpn, I get the following output:

me@iMac ~ % cpn
zsh: command not found: cpn

I know how to play a sound from terminal, in general. How do I integrate it so that there is a sound whenever the command is not found?

The specific sound I want to play is available at System Preferences > Sound > Sound Effects > Funky.