Skip to content

Commit 8a68803

Browse files
authored
Add spanish support (#548)
1 parent a0a8179 commit 8a68803

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core_backend/app/llm_call/llm_prompts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ class IdentifiedLanguage(str, Enum):
336336
# AFRIKAANS = "AFRIKAANS"
337337
ENGLISH = "ENGLISH"
338338
FRENCH = "FRENCH"
339+
SPANISH = "SPANISH"
339340
HINDI = "HINDI"
340341
SWAHILI = "SWAHILI"
341342
UNINTELLIGIBLE = "UNINTELLIGIBLE"

core_backend/app/question_answer/speech_components/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
lang_code_mapping_tts = {
2020
IdentifiedLanguage.ENGLISH: ("en-US", "Neural2-D"),
2121
IdentifiedLanguage.HINDI: ("hi-IN", "Neural2-D"),
22+
IdentifiedLanguage.SPANISH: ("es-ES", "Neural2-D"),
2223
# IdentifiedLanguage.SWAHILI: ("sw-TZ", "Neural2-D"), # No support for swahili
2324
# Add more languages and models as needed
2425
}

0 commit comments

Comments
 (0)