Translation API
The Translate API allows clients to translate an SRT transcription. The input transcription is defined by an S3 bucket name and key along with the language.
How it Works
Clients provide an input transcription in SRT format to the Subly Translate API. Subly then translates the input and when finished writes the translated SRT to the requested location in an SRT file.
What You Need
Clients of the Translate API will need:
- An S3 bucket in AWS that is accessible by Subly (see below for bucket configuration)
- An API key to use in header
x-api-key
for all requests.
Endpoints
All API requests require the x-api-key
header to be set with the API key received at registration.
API paths use base URL https://api.getsubly.com
Translate Request
Start translation of transcription
Endpoint: POST /translate
Body Format: Content-Type: application/json
Body
input
transcription
bucket
(string): Bucket containing the mediakey
(string): Key to identify the SRT file in the bucketlanguage
(string): Language code for transcription e.g. en, en (see full list below)type
(string): Type of media (see full list below)
output
bucket
(string): Bucket to put output translated transcriptionkey
(string): Directory to put output translated transcription tolanguages
(array of string): Language codes for translations e.g. fr, de (see full list below)
Example
{
"input": {
"media": {
"bucket": "my-storage-bucket",
"key": "my-transcription.srt",
"language": "en"
}
},
"output": {
"bucket": "my-storage-bucket",
"key": "my-translations",
"languages": ["fr", "de", "nl"]
}
}
Response
200
status for successful job
status
(string):COMPLETED
orFAILED
output
(array)type
(string):SRT
bucket
(string): Bucket containing the translated transcriptionkey
(string): Key to identify the translated transcription in the bucketlanguage
(string): Language code for the translated transcription
The output for each file will be in the directory <output-key>/<language>.srt
Example Response
{
"status": "COMPLETED",
"output": [
{
"type": "SRT",
"bucket": "my-storage-bucket",
"key": "my-translations/fr.srt",
"language": "fr"
},
{
"type": "SRT",
"bucket": "my-storage-bucket",
"key": "my-translations/de.srt",
"language": "de"
},
{
"type": "SRT",
"bucket": "my-storage-bucket",
"key": "my-translations/nl.srt",
"language": "nl"
}
]
}
Supported Options
Available Languages
Available languages for both input and output are:
af
: Afrikaansak
: Twi (Akan)am
: Amharicar
: Arabicas
: Assameseay
: Aymaraaz
: Azerbaijanibe
: Belarusianbg
: Bulgarianbho
: Bhojpuribm
: Bambarabn
: Bengalibs
: Bosnianca
: Catalanceb
: Cebuanockb
: Kurdish (Sorani)co
: Corsicancs
: Czechcy
: Welshda
: Danishde
: Germandoi
: Dogridv
: Dhivehiee
: Eweel
: Greeken
: Englisheo
: Esperantoes
: Spanishet
: Estonianeu
: Basquefa
: Persianfi
: Finnishfil
: Filipino (Tagalog)fr
: Frenchfy
: Frisianga
: Irishgd
: Scots Gaelicgl
: Galiciangn
: Guaranigom
: Konkanigu
: Gujaratiha
: Hausahaw
: Hawaiianhe
: Hebrewhi
: Hindihmn
: Hmonghr
: Croatianht
: Haitian Creolehu
: Hungarianhy
: Armenianid
: Indonesianis
: Icelandicit
: Italianja
: Japanesejw
: Javaneseka
: Georgiankk
: Kazakhkm
: Khmerkn
: Kannadako
: Koreankri
: Krioku
: Kurdishky
: Kyrgyzla
: Latinlb
: Luxembourgishlg
: Lugandaln
: Lingalalo
: Laolt
: Lithuanianlus
: Mizolv
: Latvianmai
: Maithilimg
: Malagasymi
: Maorimk
: Macedonianml
: Malayalammn
: Mongolianmni-Mtei
: Meitei (Manipuri)mr
: Marathims
: Malaymt
: Maltesemy
: Myanmar (Burmese)nb
: Norwegian (Bokmål)ne
: Nepalinl
: Dutchno
: Norwegiannso
: Sepediny
: Nyanja (Chichewa)om
: Oromoor
: Odia (Oriya)pa
: Punjabipl
: Polishps
: Pashtopt
: Portuguese (Portugal, Brazil)qu
: Quechuaro
: Romanianru
: Russianrw
: Kinyarwandasa
: Sanskritsd
: Sindhisi
: Sinhala (Sinhalese)sk
: Slovaksl
: Sloveniansm
: Samoansn
: Shonaso
: Somalisq
: Albaniansr
: Serbianst
: Sesothosu
: Sundanesesv
: Swedishsw
: Swahilita
: Tamilte
: Telugutg
: Tajikth
: Thaiti
: Tigrinyatk
: Turkmentl
: Tagalog (Filipino)tr
: Turkishts
: Tsongatt
: Tatarug
: Uyghuruk
: Ukrainianur
: Urduuz
: Uzbekvi
: Vietnamesexh
: Xhosayi
: Yiddishyo
: Yorubazh
: Chinese (Simplified)zh-TW
: Chinese (Traditional)zu
: Zulu
Available languages for input only are:
en
: Englishpt
: Portuguese
Available languages for output only are:
en-GB
: English (British)en-US
: English (US)pt-PT
: Portuguesept-BR
: Portuguese (Brazilian)