Speech to sign / Get sign order (gloss)
Captions
Create captionsPOSTSign Morph
Create a morphPOSTVoice
Create speechPOSTSpeech to speech
Translate textPOSTAccount
Get your balanceGETGet sign order (gloss)
POSThttps://api-staging.talksign.co/v1/speech-to-sign/gloss
Gloss tokens only, for example for AR glasses captions. Billed at $0.33 / min on the spoken length of text.
Headers
AuthorizationstringRequiredBearer authentication of the form Bearer <token>, where the token is your API key (sk-live-… or sk-test-…).
Idempotency-KeystringOptionalAny unique string (up to 255 characters). A retry with the same key and body returns the first answer and is never charged twice. See Idempotency.
Request body
This endpoint expects an object.
textstringRequiredThe text to sign, 1 to 5,000 characters. Words without a sign are fingerspelled or swapped for a synonym.
languageenumOptionalThe sign language to sign in. ASL (asl) is live and is the default.
asl
Response
Returns data:
glossstringOptionalSpace-separated sign words.
glossesstring[]OptionalThe same, as a list.
proper_nounsstring[]OptionalNames found in the text.
Errors
| Status | Name | When |
|---|---|---|
400 | Bad request | A required field is missing or a value is not allowed (invalid_request). |
401 | Unauthorized | The API key is missing or not valid (invalid_api_key). |
402 | Payment required | Your wallet does not have enough funds for this request (insufficient_credits). Nothing is charged. |
413 | Payload too large | text is longer than 5,000 characters (text_too_long). Nothing is charged. |
429 | Too many requests | You hit a rate limit. Wait for Retry-After seconds. See Rate limits. |
Example request
curl https://api-staging.talksign.co/v1/speech-to-sign/gloss \
-H "Authorization: Bearer $TALKSIGN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Where is the train station?",
"language": "asl"
}'import os
import requests
res = requests.post(
"https://api-staging.talksign.co/v1/speech-to-sign/gloss",
headers={"Authorization": f"Bearer {os.environ['TALKSIGN_API_KEY']}"},
json={
"text": "Where is the train station?",
"language": "asl"
},
)
print(res.status_code, res.json())const res = await fetch("https://api-staging.talksign.co/v1/speech-to-sign/gloss", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TALKSIGN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"text": "Where is the train station?",
"language": "asl"
}),
});
console.log(res.status, await res.json());Example response
200
Response
{
"success": true,
"data": {
"text": "Where is the train station?",
"language": "asl",
"gloss": "TRAIN STATION WHERE",
"glosses": [
"TRAIN",
"STATION",
"WHERE"
],
"proper_nouns": []
}
}Read more in the full reference: Speech to sign.
Was this page helpful?