curl --request POST \ --url https://geoff.ai/api/v1/t2a \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "text": "Hello, welcome to Geoff AI.", "voice_id": "default", "format": "mp3", "sample_rate": 44100 }' \ --output speech.mp3
{ "data": { "audio": "hex-encoded audio data", "status": 2 }, "trace_id": "04ede0ab069fb1ba8be5156a24b1e081", "extra_info": { "audio_duration": 3200, "audio_sample_rate": 44100, "audio_channel": 1, "bitrate": 128000, "audio_size": 51200 } }
Convert text to audio via HTTP. Returns audio data directly.
Bearer API_key
default
0.5
2.0
1.0
mp3
wav
ogg
44100