Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import os
|
|
| 6 |
|
| 7 |
async def get_voices():
|
| 8 |
voices = await edge_tts.list_voices()
|
| 9 |
-
return {
|
| 10 |
|
| 11 |
async def text_to_speech(text, voice, rate, pitch):
|
| 12 |
if not text.strip():
|
|
|
|
| 6 |
|
| 7 |
async def get_voices():
|
| 8 |
voices = await edge_tts.list_voices()
|
| 9 |
+
return {v['ShortName'] : v['ShortName'] for v in voices}
|
| 10 |
|
| 11 |
async def text_to_speech(text, voice, rate, pitch):
|
| 12 |
if not text.strip():
|