you can with soundfile
import soundfile as sf sf.write("filename.wav", data['audio']["array"], samplerate=16000)