wavfile generation moved to temporary files