I have audio data recorded from microphone like this : (ndarray of float) This is my code: But when I play the audio it become broken, nothing but just noise… how to convert it into .wav audio file? Answer you need to use pack your data first using struct replace your waveFile.writeframeswith this and maybe also convert your data to