Here they have a PIC running all the time and processing the signal from a piezo. They don't say, however, how long the battery will last.
http://talkingelectronics.com/projects/Elektor/Whistle/Whistle-1.html
http://talkingelectronics.com/projects/Elektor/Whistle/Whistle-1.html