123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- """
- Defines constants used by autosub.
- """
- from __future__ import unicode_literals
- GOOGLE_SPEECH_API_KEY = "AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw"
- GOOGLE_SPEECH_API_URL = "http://www.google.com/speech-api/v2/recognize?client=chromium&lang={lang}&key={key}" # pylint: disable=line-too-long
- LANGUAGE_CODES = {
- 'af': 'Afrikaans',
- 'ar': 'Arabic',
- 'az': 'Azerbaijani',
- 'be': 'Belarusian',
- 'bg': 'Bulgarian',
- 'bn': 'Bengali',
- 'bs': 'Bosnian',
- 'ca': 'Catalan',
- 'ceb': 'Cebuano',
- 'cs': 'Czech',
- 'cy': 'Welsh',
- 'da': 'Danish',
- 'de': 'German',
- 'el': 'Greek',
- 'en-AU': 'English (Australia)',
- 'en-CA': 'English (Canada)',
- 'en-GB': 'English (United Kingdom)',
- 'en-IN': 'English (India)',
- 'en-IE': 'English (Ireland)',
- 'en-NZ': 'English (New Zealand)',
- 'en-PH': 'English (Philippines)',
- 'en-SG': 'English (Singapore)',
- 'en-US': 'English (United States)',
- 'eo': 'Esperanto',
- 'es-AR': 'Spanish (Argentina)',
- 'es-CL': 'Spanish (Chile)',
- 'es-ES': 'Spanish (Spain)',
- 'es-US': 'Spanish (United States)',
- 'es-MX': 'Spanish (Mexico)',
- 'es': 'Spanish',
- 'et': 'Estonian',
- 'eu': 'Basque',
- 'fa': 'Persian',
- 'fi': 'Finnish',
- 'fr': 'French',
- 'ga': 'Irish',
- 'gl': 'Galician',
- 'gu': 'Gujarati',
- 'ha': 'Hausa',
- 'hi': 'Hindi',
- 'hmn': 'Hmong',
- 'hr': 'Croatian',
- 'ht': 'Haitian Creole',
- 'hu': 'Hungarian',
- 'hy': 'Armenian',
- 'id': 'Indonesian',
- 'ig': 'Igbo',
- 'is': 'Icelandic',
- 'it': 'Italian',
- 'iw': 'Hebrew',
- 'ja': 'Japanese',
- 'jw': 'Javanese',
- 'ka': 'Georgian',
- 'kk': 'Kazakh',
- 'km': 'Khmer',
- 'kn': 'Kannada',
- 'ko': 'Korean',
- 'la': 'Latin',
- 'lo': 'Lao',
- 'lt': 'Lithuanian',
- 'lv': 'Latvian',
- 'mg': 'Malagasy',
- 'mi': 'Maori',
- 'mk': 'Macedonian',
- 'ml': 'Malayalam',
- 'mn': 'Mongolian',
- 'mr': 'Marathi',
- 'ms': 'Malay',
- 'mt': 'Maltese',
- 'my': 'Myanmar (Burmese)',
- 'ne': 'Nepali',
- 'nl': 'Dutch',
- 'no': 'Norwegian',
- 'ny': 'Chichewa',
- 'pa': 'Punjabi',
- 'pl': 'Polish',
- 'pt-BR': 'Portuguese (Brazil)',
- 'pt-PT': 'Portuguese (Portugal)',
- 'ro': 'Romanian',
- 'ru': 'Russian',
- 'si': 'Sinhala',
- 'sk': 'Slovak',
- 'sl': 'Slovenian',
- 'so': 'Somali',
- 'sq': 'Albanian',
- 'sr': 'Serbian',
- 'st': 'Sesotho',
- 'su': 'Sudanese',
- 'sv': 'Swedish',
- 'sw': 'Swahili',
- 'ta': 'Tamil',
- 'te': 'Telugu',
- 'tg': 'Tajik',
- 'th': 'Thai',
- 'tl': 'Filipino',
- 'tr': 'Turkish',
- 'uk': 'Ukrainian',
- 'ur': 'Urdu',
- 'uz': 'Uzbek',
- 'vi': 'Vietnamese',
- 'yi': 'Yiddish',
- 'yo': 'Yoruba',
- 'yue-Hant-HK': 'Cantonese, (Traditional HK)',
- 'zh': 'Chinese (Simplified, China)',
- 'zh-HK': 'Chinese (Simplified, Hong Kong)',
- 'zh-TW': 'Chinese (Traditional, Taiwan)',
- 'zu': 'Zulu',
- }
|