Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,8 @@ async def generate1(prompt, history=[], b=None):
|
|
| 49 |
output_mn = get_translation(prompt, language="mn")
|
| 50 |
#history.append([prompt_en, output])
|
| 51 |
|
| 52 |
-
communicate = edge_tts.Communicate(output_mn, voice="mn-MN-BataaNeural")
|
|
|
|
| 53 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
|
| 54 |
tmp_path = tmp_file.name
|
| 55 |
await communicate.save(tmp_path)
|
|
|
|
| 49 |
output_mn = get_translation(prompt, language="mn")
|
| 50 |
#history.append([prompt_en, output])
|
| 51 |
|
| 52 |
+
#communicate = edge_tts.Communicate(output_mn, voice="mn-MN-BataaNeural")
|
| 53 |
+
communicate = edge_tts.Communicate(output_mn, voice="mn-MN-YesuiNeural")
|
| 54 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
|
| 55 |
tmp_path = tmp_file.name
|
| 56 |
await communicate.save(tmp_path)
|