Skip to content

Commit

Permalink
Add all languages supported by Whisper with WER < 50%. Source: https:…
Browse files Browse the repository at this point in the history
  • Loading branch information
Odrec committed Nov 26, 2024
1 parent 063202d commit 7bed08c
Showing 1 changed file with 51 additions and 4 deletions.
55 changes: 51 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,63 @@

# Define the Language Enum
class Language(Enum):
GERMAN = ("German", "de")
AFRIKAANS = ("Afrikaans", "af")
ARABIC = ("Arabic", "ar")
ARMENIAN = ("Armenian", "hy")
AZERBAIJANI = ("Azerbaijani", "az")
BELARUSIAN = ("Belarusian", "be")
BOSNIAN = ("Bosnian", "bs")
BULGARIAN = ("Bulgarian", "bg")
CATALAN = ("Catalan", "ca")
CHINESE = ("Chinese", "zh")
CROATIAN = ("Croatian", "hr")
CZECH = ("Czech", "cs")
DANISH = ("Danish", "da")
DUTCH = ("Dutch", "nl")
ENGLISH = ("English", "en")
SPANISH = ("Spanish", "es")
ESTONIAN = ("Estonian", "et")
FINNISH = ("Finnish", "fi")
FRENCH = ("French", "fr")
GALICIAN = ("Galician", "gl")
GERMAN = ("German", "de")
GREEK = ("Greek", "el")
HEBREW = ("Hebrew", "he")
HINDI = ("Hindi", "hi")
HUNGARIAN = ("Hungarian", "hu")
ICELANDIC = ("Icelandic", "is")
INDONESIAN = ("Indonesian", "id")
ITALIAN = ("Italian", "it")
JAPANESE = ("Japanese", "ja")
DUTCH = ("Dutch", "nl")
KANNADA = ("Kannada", "kn")
KAZAKH = ("Kazakh", "kk")
KOREAN = ("Korean", "ko")
LATVIAN = ("Latvian", "lv")
LITHUANIAN = ("Lithuanian", "lt")
MACEDONIAN = ("Macedonian", "mk")
MALAY = ("Malay", "ms")
MARATHI = ("Marathi", "mr")
MAORI = ("Maori", "mi")
NEPALI = ("Nepali", "ne")
NORWEGIAN = ("Norwegian", "no")
PERSIAN = ("Persian", "fa")
POLISH = ("Polish", "pl")
PORTUGUESE = ("Portuguese", "pt")
ROMANIAN = ("Romanian", "ro")
RUSSIAN = ("Russian", "ru")
SERBIAN = ("Serbian", "sr")
SLOVAK = ("Slovak", "sk")
SLOVENIAN = ("Slovenian", "sl")
SPANISH = ("Spanish", "es")
SWAHILI = ("Swahili", "sw")
SWEDISH = ("Swedish", "sv")
TAGALOG = ("Tagalog", "tl")
TAMIL = ("Tamil", "ta")
THAI = ("Thai", "th")
TURKISH = ("Turkish", "tr")
UKRAINIAN = ("Ukrainian", "uk")
CHINESE = ("Chinese", "zh")
URDU = ("Urdu", "ur")
VIETNAMESE = ("Vietnamese", "vi")
WELSH = ("Welsh", "cy")

def __init__(self, display_name, code):
self.display_name = display_name
Expand Down

0 comments on commit 7bed08c

Please sign in to comment.