Products / Voice
Voice
Turn text into natural speech audio (MP3).
Price
$0.66 / 1,000 characters, paid from your prepaid wallet. Test keys are free. See Pricing and billing.
Endpoints
Example
Natural speech audio for a text. Billed at $0.66 / 1,000 characters. Answers with the MP3 itself unless you ask for JSON.
curl https://api-staging.talksign.co/v1/voice \
-H "Authorization: Bearer $TALKSIGN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Welcome to Talksign.",
"response_format": "json"
}'import os
import requests
res = requests.post(
"https://api-staging.talksign.co/v1/voice",
headers={"Authorization": f"Bearer {os.environ['TALKSIGN_API_KEY']}"},
json={
"text": "Welcome to Talksign.",
"response_format": "json"
},
)
print(res.status_code, res.json())const res = await fetch("https://api-staging.talksign.co/v1/voice", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TALKSIGN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"text": "Welcome to Talksign.",
"response_format": "json"
}),
});
console.log(res.status, await res.json());Was this page helpful?