Use automatic language detection
Omit language or set it to auto. This is the default for every source. See the language option documentation for its different roles in caption selection and speech-to-text.
Automatic detection is a useful starting point when a queue contains recordings from different speakers or sources. It avoids forcing one language across an entire collection. For an individual recording whose language you know, a two-letter hint can provide more useful guidance than relying on a very short or ambiguous introduction.
Detection depends on the audio available to the transcription process. A clip dominated by music, silence or a brief borrowed phrase gives less evidence than a clear conversation. Review the resulting words as well as the language field; a plausible language label does not guarantee every word is correct.
curl -X POST "https://api.transcript1.com/v1/transcriptions?wait=60" \
-H "Authorization: Bearer $TRANSCRIPT1_API_KEY" \
-F [email protected] \
-F language=autoPer-segment language for multilingual transcription
The top-level language is the dominant language. Each segment reports its own language, so you can see where the recording switches languages. The API object reference shows where these fields appear.
Use the top-level field for a broad label on the job and the segment fields when routing individual passages. For example, a bilingual interview can contain an introduction in one language and answers in another. Filtering all segments by the dominant language would discard part of that interview.
The following response is an illustration of per-segment language labels. It does not mean a language change will always occur at a clean sentence boundary. Code-switching within a sentence, names and technical terms may require human review. Preserve the original segment text when preparing a reviewed or translated version elsewhere.
{
"status": "completed",
"transcript_source": "speech_to_text",
"language": "en",
"transcript": {
"segments": [
{ "start": 0, "end": 3.4, "speaker": null, "language": "en", "text": "Good morning." },
{ "start": 3.4, "end": 7.9, "speaker": null, "language": "de", "text": "Guten Morgen." }
]
}
}Pass a language when you know it
Use a two-letter ISO 639-1 code. For a file upload, language is a form field in the multipart upload request.
For speech-to-text, the code is a recognition hint. For YouTube captions, it selects the desired caption language instead. In auto mode, caption selection follows the original video language, and automatically translated caption tracks are excluded. Keep those two meanings in mind when a pipeline accepts both uploads and YouTube links.
Requesting en does not ask transcript1 to translate a Spanish recording into English. The service produces a transcription, not a translated document. If translation is the next step in your application, keep it as a separate operation with its own review and retain the original transcript for comparison.
curl -X POST "https://api.transcript1.com/v1/transcriptions?wait=60" \
-H "Authorization: Bearer $TRANSCRIPT1_API_KEY" \
-F [email protected] \
-F language=deReview multilingual output before routing it
If your application routes transcripts to language-specific editors or search indexes, keep both the job-level language and segment labels. The dominant language is useful for an overview, but it can hide a substantial answer in another language. Route or index the relevant passages rather than discarding everything that differs from the top-level value.
For an interview that switches languages, review the transition and the surrounding sentences. A name, quotation or borrowed term does not necessarily mean the speaker has changed language for an entire passage. Avoid turning machine labels into confident claims about the speaker’s fluency, background or identity.
When a result looks wrong, listen to the source before changing request parameters. Confirm the recording contains clear speech in the expected language and that you did not select a different soundtrack. If you decide to create a new job with a hint, preserve the earlier result for comparison. Changing processing options can create a new paid transcription; it is different from reading an existing export.
| Task | Useful approach |
|---|---|
| Mixed-language research interview | Review segment languages and preserve the original words beside any later translation. |
| Short narrated Reel | Check that music or a brief introduction did not obscure the speech you need. |
| YouTube caption retrieval | Choose a matching track language; auto-translated tracks are excluded. |