Getting corrupt audio files while using text to speech models

I followed a course on youtube and tried it but Im stuck here and im only getting corrput audio files after code execution. I removed api token in image but im using it in execution

image_2024-05-05_002018605