Voice

POST /v1/voice

Natural speech audio for a text. Price: $0.66 per 1,000 characters of text (rounded up to the cent, minimum $0.01). Body: text (required, ≤ 5,000 characters), voice (optional id from GET /v1/voice/voices), response_format (mp3, default, or json).

The default response is the MP3 itself (Content-Type: audio/mpeg) with Talksign-Usage-Characters and Talksign-Usage-Cost-Usd headers. With "response_format": "json": { "data": { "audio_base64", "content_type", "characters" }, "usage": { … } }.

Terminal
curl https://api-staging.talksign.co/v1/voice \
  -H "Authorization: Bearer $TALKSIGN_KEY" -H "Content-Type: application/json" \
  -d '{ "text": "Welcome to Talksign." }' --output welcome.mp3

GET /v1/voice/voices

The preset voices: { "object": "list", "data": [ { "id", "name", "default" } ] }. Free.

Was this page helpful?
Esc