Dear Community,
I hope this message finds you well. I’m reaching out because I’m experiencing some difficulties sending curl requests to the OpenAI service. I’m attempting to convert text to audio using the provided API, but unfortunately, the resulting audio file is only 4 KB in size and cannot be played by any media player.
Here’s the command I’m using:
curl https://api.openai.com/v1/audio/speech -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"model": "tts-1-hd", "input": "Hey, what's up? What's the best lyrical dramaturgy", "voice": "alloy" }' --output speech.mp3