440 lines
9.0 KiB
Python
440 lines
9.0 KiB
Python
transcription_lang = {
|
|
"Afrikaans":{
|
|
"South Africa":{
|
|
"Google": "af-ZA",
|
|
"Whisper": "af",
|
|
},
|
|
},
|
|
"Arabic":{
|
|
"Algeria":{
|
|
"Google": "ar-DZ",
|
|
"Whisper": "ar",
|
|
},
|
|
"Bahrain":{
|
|
"Google": "ar-BH",
|
|
"Whisper": "ar",
|
|
},
|
|
"Egypt":{
|
|
"Google": "ar-EG",
|
|
"Whisper": "ar",
|
|
},
|
|
"Israel":{
|
|
"Google": "ar-IL",
|
|
"Whisper": "ar",
|
|
},
|
|
"Iraq":{
|
|
"Google": "ar-IQ",
|
|
"Whisper": "ar",
|
|
},
|
|
"Jordan":{
|
|
"Google": "ar-JO",
|
|
"Whisper": "ar",
|
|
},
|
|
"Kuwait":{
|
|
"Google": "ar-KW",
|
|
"Whisper": "ar",
|
|
},
|
|
"Lebanon":{
|
|
"Google": "ar-LB",
|
|
"Whisper": "ar",
|
|
},
|
|
"Morocco":{
|
|
"Google": "ar-MA",
|
|
"Whisper": "ar",
|
|
},
|
|
"Oman":{
|
|
"Google": "ar-OM",
|
|
"Whisper": "ar",
|
|
},
|
|
"State of Palestine":{
|
|
"Google": "ar-PS",
|
|
"Whisper": "ar",
|
|
},
|
|
"Qatar":{
|
|
"Google": "ar-QA",
|
|
"Whisper": "ar",
|
|
},
|
|
"Saudi Arabia":{
|
|
"Google": "ar-SA",
|
|
"Whisper": "ar",
|
|
},
|
|
"Tunisia":{
|
|
"Google": "ar-TN",
|
|
"Whisper": "ar",
|
|
},
|
|
"United Arab Emirates":{
|
|
"Google": "ar-AE",
|
|
"Whisper": "ar",
|
|
},
|
|
},
|
|
"Basque":{
|
|
"Spain":{
|
|
"Google": "eu-ES",
|
|
"Whisper": "eu",
|
|
},
|
|
},
|
|
"Bulgarian":{
|
|
"Bulgaria":{
|
|
"Google": "bg-BG",
|
|
"Whisper": "bg",
|
|
},
|
|
},
|
|
"Catalan":{
|
|
"Spain":{
|
|
"Google": "ca-ES",
|
|
"Whisper": "ca",
|
|
},
|
|
},
|
|
"Chinese Simplified":{
|
|
"China":{
|
|
"Google": "cmn-Hans-CN",
|
|
"Whisper": "zh",
|
|
},
|
|
"Hong Kong":{
|
|
"Google": "cmn-Hans-HK",
|
|
"Whisper": "zh",
|
|
},
|
|
},
|
|
"Chinese Traditional":{
|
|
"Taiwan":{
|
|
"Google": "cmn-Hant-TW",
|
|
"Whisper": "zh",
|
|
},
|
|
"Hong Kong":{
|
|
"Google": "yue-Hant-HK",
|
|
"Whisper": "yue",
|
|
},
|
|
},
|
|
"Croatian":{
|
|
"Croatia":{
|
|
"Google": "hr-HR",
|
|
"Whisper": "hr",
|
|
},
|
|
},
|
|
"Czech":{
|
|
"Czech Republic":{
|
|
"Google": "cs-CZ",
|
|
"Whisper": "cs",
|
|
},
|
|
},
|
|
"Danish":{
|
|
"Denmark":{
|
|
"Google": "da-DK",
|
|
"Whisper": "da",
|
|
},
|
|
},
|
|
"Dutch":{
|
|
"Netherlands":{
|
|
"Google": "nl-NL",
|
|
"Whisper": "nl",
|
|
},
|
|
},
|
|
"English": {
|
|
"United States":{
|
|
"Google": "en-US",
|
|
"Whisper": "en",
|
|
},
|
|
"United Kingdom":{
|
|
"Google": "en-GB",
|
|
"Whisper": "en",
|
|
},
|
|
"Australia":{
|
|
"Google": "en-AU",
|
|
"Whisper": "en",
|
|
},
|
|
"Canada":{
|
|
"Google": "en-CA",
|
|
"Whisper": "en",
|
|
},
|
|
"India":{
|
|
"Google": "en-IN",
|
|
"Whisper": "en",
|
|
},
|
|
"Ireland":{
|
|
"Google": "en-IE",
|
|
"Whisper": "en",
|
|
},
|
|
"New Zealand":{
|
|
"Google": "en-NZ",
|
|
"Whisper": "en",
|
|
},
|
|
"Philippines":{
|
|
"Google": "en-PH",
|
|
"Whisper": "en",
|
|
},
|
|
"South Africa":{
|
|
"Google": "en-ZA",
|
|
"Whisper": "en",
|
|
},
|
|
},
|
|
"Filipino":{
|
|
"Philippines":{
|
|
"Google": "fil-PH",
|
|
"Whisper": "tl",
|
|
},
|
|
},
|
|
"Finnish":{
|
|
"Finland":{
|
|
"Google": "fi-FI",
|
|
"Whisper": "fi",
|
|
},
|
|
},
|
|
"French":{
|
|
"France":{
|
|
"Google": "fr-FR",
|
|
"Whisper": "fr",
|
|
},
|
|
},
|
|
"Galician":{
|
|
"Spain":{
|
|
"Google": "gl-ES",
|
|
"Whisper": "gl",
|
|
},
|
|
},
|
|
"German":{
|
|
"Germany":{
|
|
"Google": "de-DE",
|
|
"Whisper": "de",
|
|
},
|
|
},
|
|
"Greek":{
|
|
"Greece":{
|
|
"Google": "el-GR",
|
|
"Whisper": "el",
|
|
},
|
|
},
|
|
"Hebrew":{
|
|
"Israel":{
|
|
"Google": "he-IL",
|
|
"Whisper": "he",
|
|
},
|
|
},
|
|
"Hindi": {
|
|
"India":{
|
|
"Google": "hi-IN",
|
|
"Whisper": "hi",
|
|
},
|
|
},
|
|
"Hungarian":{
|
|
"Hungary":{
|
|
"Google": "hu-HU",
|
|
"Whisper": "hu",
|
|
},
|
|
},
|
|
"Indonesian":{
|
|
"Indonesia":{
|
|
"Google": "id-ID",
|
|
"Whisper": "id",
|
|
},
|
|
},
|
|
"Icelandic":{
|
|
"Iceland":{
|
|
"Google": "is-IS",
|
|
"Whisper": "is",
|
|
},
|
|
},
|
|
"Italian":{
|
|
"Italy":{
|
|
"Google": "it-IT",
|
|
"Whisper": "it",
|
|
},
|
|
"Switzerland":{
|
|
"Google": "it-CH",
|
|
"Whisper": "it",
|
|
},
|
|
},
|
|
"Japanese":{
|
|
"Japan":{
|
|
"Google": "ja-JP",
|
|
"Whisper": "ja",
|
|
},
|
|
},
|
|
"Korean":{
|
|
"South Korea":{
|
|
"Google": "ko-KR",
|
|
"Whisper": "ko",
|
|
},
|
|
},
|
|
"Lithuanian":{
|
|
"Lithuania":{
|
|
"Google": "lt-LT",
|
|
"Whisper": "lt",
|
|
},
|
|
},
|
|
"Malay":{
|
|
"Malaysia":{
|
|
"Google": "ms-MY",
|
|
"Whisper": "ms",
|
|
},
|
|
},
|
|
"Norwegian":{
|
|
"Norway":{
|
|
"Google": "nb-NO",
|
|
"Whisper": "no",
|
|
},
|
|
},
|
|
"Persian":{
|
|
"Iran":{
|
|
"Google": "fa-IR",
|
|
"Whisper": "fa",
|
|
},
|
|
},
|
|
"Polish":{
|
|
"Poland":{
|
|
"Google": "pl-PL",
|
|
"Whisper": "pl",
|
|
},
|
|
},
|
|
"Portuguese":{
|
|
"Brazil":{
|
|
"Google": "pt-BR",
|
|
"Whisper": "pt",
|
|
},
|
|
"Portugal":{
|
|
"Google": "pt-PT",
|
|
"Whisper": "pt",
|
|
},
|
|
},
|
|
"Romanian":{
|
|
"Romania":{
|
|
"Google": "ro-RO",
|
|
"Whisper": "ro",
|
|
},
|
|
},
|
|
"Russian":{
|
|
"Russia":{
|
|
"Google": "ru-RU",
|
|
"Whisper": "ru",
|
|
},
|
|
},
|
|
"Serbian":{
|
|
"Serbia":{
|
|
"Google": "sr-RS",
|
|
"Whisper": "sr",
|
|
},
|
|
},
|
|
"Slovak":{
|
|
"Slovakia":{
|
|
"Google": "sk-SK",
|
|
"Whisper": "sk",
|
|
},
|
|
},
|
|
"Slovenian":{
|
|
"Slovenia":{
|
|
"Google": "sl-SI",
|
|
"Whisper": "sl",
|
|
},
|
|
},
|
|
"Spanish":{
|
|
"Argentina":{
|
|
"Google": "es-AR",
|
|
"Whisper": "es",
|
|
},
|
|
"Bolivia":{
|
|
"Google": "es-BO",
|
|
"Whisper": "es",
|
|
},
|
|
"Chile":{
|
|
"Google": "es-CL",
|
|
"Whisper": "es",
|
|
},
|
|
"Colombia":{
|
|
"Google": "es-CO",
|
|
"Whisper": "es",
|
|
},
|
|
"Costa Rica":{
|
|
"Google": "es-CR",
|
|
"Whisper": "es",
|
|
},
|
|
"Dominican Republic":{
|
|
"Google": "es-DO",
|
|
"Whisper": "es",
|
|
},
|
|
"Ecuador":{
|
|
"Google": "es-EC",
|
|
"Whisper": "es",
|
|
},
|
|
"El Salvador":{
|
|
"Google": "es-SV",
|
|
"Whisper": "es",
|
|
},
|
|
"Guatemala":{
|
|
"Google": "es-GT",
|
|
"Whisper": "es",
|
|
},
|
|
"Honduras":{
|
|
"Google": "es-HN",
|
|
"Whisper": "es",
|
|
},
|
|
"Mexico":{
|
|
"Google": "es-MX",
|
|
"Whisper": "es",
|
|
},
|
|
"Nicaragua":{
|
|
"Google": "es-NI",
|
|
"Whisper": "es",
|
|
},
|
|
"Panama":{
|
|
"Google": "es-PA",
|
|
"Whisper": "es",
|
|
},
|
|
"Paraguay":{
|
|
"Google": "es-PY",
|
|
"Whisper": "es",
|
|
},
|
|
"Peru":{
|
|
"Google": "es-PE",
|
|
"Whisper": "es",
|
|
},
|
|
"Puerto Rico":{
|
|
"Google": "es-PR",
|
|
"Whisper": "es",
|
|
},
|
|
"Spain":{
|
|
"Google": "es-ES",
|
|
"Whisper": "es",
|
|
},
|
|
"Uruguay":{
|
|
"Google": "es-UY",
|
|
"Whisper": "es",
|
|
},
|
|
"United States":{
|
|
"Google": "es-US",
|
|
"Whisper": "es",
|
|
},
|
|
"Venezuela":{
|
|
"Google": "es-VE",
|
|
"Whisper": "es",
|
|
},
|
|
},
|
|
"Swedish":{
|
|
"Sweden":{
|
|
"Google": "sv-SE",
|
|
"Whisper": "sv",
|
|
},
|
|
},
|
|
"Thai":{
|
|
"Thailand":{
|
|
"Google": "th-TH",
|
|
"Whisper": "th",
|
|
},
|
|
},
|
|
"Turkish":{
|
|
"Turkey":{
|
|
"Google": "tr-TR",
|
|
"Whisper": "tr",
|
|
},
|
|
},
|
|
"Ukrainian":{
|
|
"Ukraine":{
|
|
"Google": "uk-UA",
|
|
"Whisper": "uk",
|
|
},
|
|
},
|
|
"Vietnamese":{
|
|
"Vietnam":{
|
|
"Google": "vi-VN",
|
|
"Whisper": "vi",
|
|
},
|
|
},
|
|
} |