Translation
Translate a transcript into another language, list supported languages, and manage existing translations.
Translate a transcript into another language and manage the translations linked to it. Each translation is created as a new file that is linked back to the original transcript, so it can be retrieved or processed like any other Trint file. Authenticate with Basic Authentication using your API key ID and secret.
Language codes
The targetLanguage must be a supported language code (for example fr for French). Call the Translation Languages endpoint to retrieve the full list of supported languages and their codes before requesting a translation.
Supported translation languages
Retrieves a list of supported languages for translation. Each language includes a human-readable name and its corresponding language code, which can be used when specifying translation targets.
Translation Languages
https://translation.api.trint.com/translation-languagesRetrieves a list of supported languages for translation. Each language includes a human-readable name and its corresponding language code, which can be used when specifying translation targets.
curl --request GET \ --url 'https://translation.api.trint.com/translation-languages' \
--header 'Authorization: Basic YOUR_BASE64_KEY_ID_AND_SECRET'Response 200
{
"data": {
"translationLanguages": [
{
"languageName": "Afrikaans",
"languageCode": "af"
},
{
"languageName": "Albanian",
"languageCode": "sq"
},
{
"languageName": "Amharic",
"languageCode": "am"
},
{
"languageName": "Arabic",
"languageCode": "ar"
},
{
"languageName": "Armenian",
"languageCode": "hy"
},
{
"languageName": "Azerbaijani",
"languageCode": "az"
},
{
"languageName": "Bengali",
"languageCode": "bn"
},
...
],
},
}200200400400Create a translation
Creates a translation of a file. Provide the targetLanguage as a supported language code. Once the translation is complete, the translated file is linked to the original file and available for retrieval or further processing.
Create Translation
https://translation.api.trint.com/This endpoint creates a translation of a file. The targetLanguage should be provided using a supported language code. Once the translation is complete, the translated file will be linked to the original file and available for retrieval or further processing.
Body parameters
transcriptIdstringoptionaltrint-id to translate
targetLanguagestringoptionallanguage code to translate into
curl --request POST \ --url 'https://translation.api.trint.com/' \
--header 'Authorization: Basic YOUR_BASE64_KEY_ID_AND_SECRET' \
--header 'Content-Type: application/json' \
--data '{}'Response 200
{
"data": {
"fileId": "example9KD-8Eo7Casfake",
"createdDate": 1000222100000,
"languageCode": "es",
"sourceFileId": "exampleCR7e5gFx-Y7fake"
}
}200200400400Retrieve existing translations
Retrieves the translation references for a transcript (trint-id), including the source file and any translations linked to it.
Get Translations
https://translation.api.trint.com/Retrieves translation references for a fileId (trint-id). Source and Translations.
Body parameters
transcriptIdstringoptionaltrint-id
curl --request GET \ --url 'https://translation.api.trint.com/' \
--header 'Authorization: Basic YOUR_BASE64_KEY_ID_AND_SECRET' \
--header 'Content-Type: application/json' \
--data '{}'Response 200
{
"data":
{
"source":
{
"fileId": "exampleCR7e5gFx-Y7fake",
"languageCode": "en",
"languageName": "English",
"createdDate": 1000157600000,
},
"translations":
[
{
"fileId": "exampleHTfi4YuvgI0fake",
"languageCode": "fr",
"languageName": "French",
"createdDate": 1000222100000,
}
],
},
}200200400400Delete a translation
Deletes an existing translation.
Delete Translation
https://translation.api.trint.com/Deletes an existing translation.
Body parameters
transcriptIdstringoptionaltrint-id to delete
curl --request DELETE \ --url 'https://translation.api.trint.com/' \
--header 'Authorization: Basic YOUR_BASE64_KEY_ID_AND_SECRET' \
--header 'Content-Type: application/json' \
--data '{}'Response 200
{
"data": {
"fileId": "exampleSRQGSZjBcvfake",
"deleted": true
}
}200200400400