Skip to content

Instantly share code, notes, and snippets.

@luizmarcus
Created March 1, 2024 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizmarcus/32d5ebd15525ad460d05ea7092f79093 to your computer and use it in GitHub Desktop.
Save luizmarcus/32d5ebd15525ad460d05ea7092f79093 to your computer and use it in GitHub Desktop.
curl https://api.openai.com/v1/audio/speech \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tts-1",
"input": "Esse é um teste de conversão de texto para voz",
"voice": "alloy"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment