Spaces:
Paused
Paused
Upload agent.py with huggingface_hub
Browse files
agent.py
CHANGED
|
@@ -88,7 +88,7 @@ VOICE_INFO = {
|
|
| 88 |
"label": "Soomaali", "type": "mms", "repo": "facebook/mms-tts-som",
|
| 89 |
"lang_name": "Somali", "whisper_lang": "so",
|
| 90 |
"region": "East Africa", "flag": "🇸🇴",
|
| 91 |
-
"greeting": "Nabad! Anigu waxaan ahay DUOL.",
|
| 92 |
"sample": "Sidee baad tahay?",
|
| 93 |
},
|
| 94 |
"orm": {
|
|
@@ -394,6 +394,8 @@ def build_instructions(info: dict, spoken_language: str, domain: str = "general"
|
|
| 394 |
fillers = "('Yego', 'Oya', 'Ese', 'Nibyo')"
|
| 395 |
elif lang_name.lower() == "hausa":
|
| 396 |
fillers = "('To', 'Ai', 'Wato', 'Da kyau')"
|
|
|
|
|
|
|
| 397 |
else:
|
| 398 |
fillers = "natural local conversational pause markers"
|
| 399 |
|
|
|
|
| 88 |
"label": "Soomaali", "type": "mms", "repo": "facebook/mms-tts-som",
|
| 89 |
"lang_name": "Somali", "whisper_lang": "so",
|
| 90 |
"region": "East Africa", "flag": "🇸🇴",
|
| 91 |
+
"greeting": "Nabad! Anigu waxaan ahay DUOL, caawiyahaaga caqliga ah. Sidee baad tahay?",
|
| 92 |
"sample": "Sidee baad tahay?",
|
| 93 |
},
|
| 94 |
"orm": {
|
|
|
|
| 394 |
fillers = "('Yego', 'Oya', 'Ese', 'Nibyo')"
|
| 395 |
elif lang_name.lower() == "hausa":
|
| 396 |
fillers = "('To', 'Ai', 'Wato', 'Da kyau')"
|
| 397 |
+
elif lang_name.lower() == "somali":
|
| 398 |
+
fillers = "('Haa', 'Maya', 'Waa hagaag', 'Sax')"
|
| 399 |
else:
|
| 400 |
fillers = "natural local conversational pause markers"
|
| 401 |
|