Developers / Speech to Text

Download a completed STT job as TXT, SRT or JSON

GET https://api.echonova.ai/v1/speech-to-text/jobs/{jobId}/export

Returns the transcript of a completed API job of this key's workspace as a file: txt is the transcription text, srt is subtitles of at most 7 seconds and two 42-character lines per cue, each prefixed with its speaker label when speakers were identified, and json carries the text, speakers and timed segments. lang sets the language of the speaker labels. A job that has not completed answers 400; a job of another workspace answers 404. Needs Speech to Text access on the key.

Headers

Authorization string Required

Bearer, a space, then your API key, which starts with ek_. Create keys in the portal under Developers, API Keys.

Path parameters

jobId string Required

The jobId the API returned when the job was created.

Query parameters

format string Required

txt: the transcript text. srt: subtitles, one cue per few seconds, each tagged with its speaker when known. json: text, speakers and timed segments.

txt, srt or json
lang string Optional

Language of the speaker labels: en gives "Speaker 1", ar gives "المتحدث 1".

en or ardefault en

Response

200 text/plain, application/x-subrip, application/json The body is the file itself, not the envelope, with Content-Disposition: attachment and its file name. Errors still use the envelope.

Errors

Same envelope, with success false and data null. All errors

GET /v1/speech-to-text/jobs/{jobId}/export

curl "https://api.echonova.ai/v1/speech-to-text/jobs/{jobId}/export?format=srt" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -o download.srt

السلام عليكم، كيف حالك؟ بخير، الحمد لله.