Speech Recognition for sounds?

I’d like to be able to trigger a script based on sounds (a door slamming or maybe a whistle?). Is there any way to convert these noises to “words” which the SpeechRecognitionServer could recognize?

Speech recognition really is set up to recognize words in the language chosen for the machine. It might be possible to record the sound and compare a new one to that recording, but I can’t suggest a way to do it.