curl https://api.openai.com/v1/audio/speech \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini-tts",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}' \
--output speech.mp3
similar to #66 , make ovos-tts-servers compatible with all projects out there following the OpenAI specification
https://platform.openai.com/docs/api-reference/audio/createSpeech
endpoint:
/v1/audio/speech