Speech to sign

POST /v1/speech-to-sign/realtime

A playlist of short sign clips to play back to back. Price: Speech→Sign rate (currently $0.33 per minute of sign video produced; minimum $0.01 per call). Idempotent with Idempotency-Key.

Request: shared sign request fields.

Audio input. Instead of text, send multipart/form-data with an audio file (WAV, MP3, FLAC, OGG, M4A/AAC, WebM or MP4 audio; at most 10 minutes and 25 MB, checked from the file's content). The audio is transcribed and then signed. You are charged the Speech→Sign rate for the measured audio length, and the response adds input: "audio" and transcript. Optional form field spokenLanguage (BCP-47, default en-US); the other shared fields work as form fields too. Errors: 400 invalid_file, 413 file_too_large, 413 audio_too_long, 422 no_speech (nothing charged), 502 transcription_failed.

Terminal
curl https://api-staging.talksign.co/v1/speech-to-sign/realtime \
  -H "Authorization: Bearer $TALKSIGN_KEY" \
  -F audio=@question.mp3 -F avatar=arthur

Response data:

FieldTypeNotes
languagestringSign language used.
avatarstringAvatar used (may be arthur with a notice, see above).
textstringTrimmed input.
glossesstring[]Gloss tokens in signing order.
playlistClip[]One entry per clip, in order (below).
idleobject | null{ url, expires_at }: the avatar's rest-pose loop to play between sentences. null if the avatar has none.
expires_atstring (ISO 8601)Every URL in this response works until at least this time: 6 to 12 hours after the call.
transitionobjectDefault transition { effect, duration_ms }.
has_missingbooleantrue when a word had no clip (its url is null).
notice, requested_avatarstringOnly when a fallback avatar was used.
model_noticestringOnly when the engine reports a model notice.

Clip fields:

FieldTypeNotes
glossstringSign word, e.g. HELLO.
urlstring | nullMain clip (signed URL).
in_urlstring | nullNeutral pose → sign start. null together with out_url when the avatar has no transition clips.
out_urlstring | nullSign end → neutral pose.
active_start_s, active_end_snumber | nullPlay url only between these seconds when using in/out clips.
in_out_speednumber | nullPlayback rate for in_url/out_url (e.g. 1.5); null = 1.0.
alphaUrlstring | nullOptional matte of url (colour and mask side by side) for transparent backgrounds.
in_alpha_url, out_alpha_urlstring | nullMattes of in_url / out_url.
groupinteger | string | nullClips of one fingerspelled word share a group.
letterstring | nullThe letter for a fingerspelled clip.
tierstringHow the gloss matched a clip (e.g. TIER_1_EXACT, TIER_2_SYNONYM, TIER_3_FINGERSPELLING). Informational.
transitionobjectSuggested { effect, duration_ms } to the next clip when not using in/out clips.

Play order per word: in_url → url[active_start_s..active_end_s] → out_url; loop idle.url between sentences. See "Quickstart".

Errors: 400 invalid_request (missing text, unknown model), 402, 403, 404, 409, 413 text_too_long, 422, 429, 503 service_unavailable.

Test mode: sample playlist built from the words of text (sample clip URLs, idle: null, expires_at = when the sample links expire, 1 hour). Coming-soon avatars still return 409.

POST /v1/speech-to-sign/studio

Renders one downloadable MP4 (every word as in → active → out, no cuts). Price: Sign Video rate (currently $1.32 per minute of rendered video; minimum $0.01). Funds for up to twice the spoken-length estimate are reserved, the unused part is released. Idempotent with Idempotency-Key.

Request: shared sign request fields.

Response data:

FieldTypeNotes
videoUrl / video_urlstringhttps://api-staging.talksign.co/v1/speech-to-sign/video/{requestId}. Needs your key to download.
download_urlstring | nullSigned link to the MP4, valid for 1 hour. Works directly in <video src> or a browser download (no key needed). null if the link could not be made; use video_url.
expires_atstring | nullISO 8601 time download_url stops working.
requestIdstring | nullRender id.
durationSecondsnumberBilled length.
avatar, languagestringAs used.
notice, requested_avatar, model_noticestringAs for realtime.

Rendered videos are kept for 7 days, then deleted. Download and host them yourself if you need them longer.

Errors: as realtime. Test mode: a req_test_… id whose video redirects to a sample clip; download_url is a sample clip link.

POST /v1/speech-to-sign/gloss

Gloss tokens only (e.g. AR glasses HUDs). Price: Speech→Sign rate on the spoken-length estimate of text (≈ 2.5 words per second; minimum $0.01). Idempotent with Idempotency-Key.

Request: text (string, required, ≤ 5,000 chars), language (asl default | bsl).

Response data: text, language, gloss (space-separated string), glosses (string[]), proper_nouns (string[]).

Errors: 400, 402, 413, 429, 503. Test mode: deterministic sample gloss.

POST /v1/speech-to-sign

Convenience endpoint. Same request as realtime plus mode: realtime (default), studio or render. Behaves exactly like /realtime or /studio and is billed at that endpoint's price. Idempotent with Idempotency-Key.

GET /v1/speech-to-sign/video/{requestId}

Streams the MP4 of a studio render (Content-Type: video/mp4). Free. Supports HTTP Range requests: Range: bytes=0-1023 answers 206 Partial Content with Content-Range (an invalid range answers 416), so video players can seek. Only the account that rendered it can download it; anyone else gets 404 not_found. Videos are kept for 7 days; download them and host them yourself if you need them longer. Test mode: req_test_… ids redirect (302) to a sample clip.

Was this page helpful?
Esc