Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -371,7 +371,8 @@ async def edge_tts_generate_audio(text, voice="en-US-AriaNeural", rate=0, pitch=
|
|
| 371 |
|
| 372 |
def speak_with_edge_tts(text, voice="en-US-AriaNeural", rate=0, pitch=0, file_format="mp3"):
|
| 373 |
"""Wrapper for the async TTS generate call."""
|
| 374 |
-
asyncio.run(edge_tts_generate_audio(text, voice, rate, pitch, file_format))
|
|
|
|
| 375 |
return
|
| 376 |
|
| 377 |
def play_and_download_audio(file_path, file_type="mp3"):
|
|
|
|
| 371 |
|
| 372 |
def speak_with_edge_tts(text, voice="en-US-AriaNeural", rate=0, pitch=0, file_format="mp3"):
|
| 373 |
"""Wrapper for the async TTS generate call."""
|
| 374 |
+
# asyncio.run(edge_tts_generate_audio(text, voice, rate, pitch, file_format))
|
| 375 |
+
await edge_tts_generate_audio(text, voice, rate, pitch, file_format)
|
| 376 |
return
|
| 377 |
|
| 378 |
def play_and_download_audio(file_path, file_type="mp3"):
|