Get the transcript for a transcription job
https://eu1.asr.api.speechmatics.com/v2/jobs/{jobid}/transcriptAuthentication
- bearerAuth
Authorization: Bearer <token>Your API key, or a temporary key (JWT).
Path parameters
jobidstringID of the job.
Query parameters
formatoptional"json-v2" | "txt" | "srt"The transcription format (by default the
json-v2format is returned).waitoptionalintegerNote: Only available on SaaS on Cloud. Number of seconds to block until the transcript is ready before responding. Capped server-side. Returns HTTP 200 with the transcript if it becomes ready within
wait; otherwise returns the usual HTTP 404, and you can retry to keep waiting. When omitted, a short default wait applies: currently 5 seconds, and it will increase. Treat the default as an unspecified short interval rather than a fixed duration. Passwait=0to respond immediately.
Responses
OK
formatstringSpeechmatics JSON transcript format version number.
jobJobInfoSummary information about an ASR job, to support identification and tracking.
metadataRecognitionMetadataSummary information about the output from an ASR job, comprising the job type and configuration parameters used when generating the output.
resultsRecognitionResult[]An ASR job output item. The primary item types are
wordandpunctuation. Other item types may be present, for example to provide semantic information of different forms.speakersoptionalSpeakersResultItem[]List of unique speaker identifiers detected in the transcript.
translationsoptionalRecord<string, TranslationSentence[]>Translations of the transcript into other languages. It is a map of ISO language codes to arrays of translated sentences. Configured using
translation_config.summaryoptionalSummarizationResultSummary of the transcript, configured using
summarization_config.sentiment_analysisoptionalSentimentAnalysisResultThe main object that holds sentiment analysis data.
topicsoptionalTopicDetectionResultMain object that holds topic detection results.
chaptersoptionalAutoChaptersResultAn array of objects that represent summarized chapters of the transcript
audio_eventsoptionalAudioEventItem[]Timestamped audio events, only set if
audio_events_configis in the configaudio_event_summaryoptionalobjectSummary statistics per event type, keyed by
type, e.g. music
Request
import { BatchClient } from "@speechmatics/batch-client";
const client = new BatchClient({ apiKey: "YOUR_API_KEY", appId: "my-app" });
const transcript = await client.getJobResult("JOB_ID", "text");
console.log(transcript);
from speechmatics.batch import Client
with Client(api_key="YOUR_API_KEY") as client:
transcript = client.get_transcript("JOB_ID")
print(transcript.transcript_text)
API_KEY="YOUR_API_KEY"
JOB_ID="JOB_ID"
curl -L -X GET "https://eu1.asr.api.speechmatics.com/v2/jobs/${JOB_ID}/transcript?format=txt" \
-H "Authorization: Bearer ${API_KEY}"