success getting frequency and recording wav file