Use mktemp to generate wav files, it's supposeed to be safer than just relying on /tmp/whatever.wav