π¦ ClawHub
Oatda Generate Speech
by @devcsde
Generate speech or audio from text using OATDA's unified audio API. Triggers when the user wants to convert text to speech, create narration, voiceovers, acc...
π‘ Examples
export OATDA_API_KEY="${OATDA_API_KEY:-$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)}" && \
curl -s -X POST "https://oatda.com/api/v1/llm/speech" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OATDA_API_KEY" \
-d '{
"provider": "openai",
"model": "tts-1",
"input": "Welcome to OATDA, one API to direct all.",
"voice": "alloy",
"response_format": "mp3",
"speed": 1.0
}' \
--output speech.mp3
π Tips & Best Practices
/api/v1/llm/speechinput, not prompt, for TTS requests--outputoatda-list-models to discover available audio modelsgenerate_speechoatda-list-models, oatda-transcribe-audio, oatda-translate-audioTERMINAL
clawhub install oatda-generate-speech