awacke1 commited on
Commit
83a9d2e
·
verified ·
1 Parent(s): 9f9283e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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"):