prithivMLmods commited on
Commit
d57321f
·
verified ·
1 Parent(s): 2bdc3b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ model.eval()
44
 
45
  async def text_to_speech(text: str, output_file="output.mp3"):
46
  """Convert text to speech using Edge TTS and save as MP3"""
47
- voice = "en-US-AriaNeural" # Change this to your preferred voice
48
  communicate = edge_tts.Communicate(text, voice)
49
  await communicate.save(output_file)
50
  return output_file
 
44
 
45
  async def text_to_speech(text: str, output_file="output.mp3"):
46
  """Convert text to speech using Edge TTS and save as MP3"""
47
+ voice = "en-US-GuyNeural" # Change this to your preferred voice
48
  communicate = edge_tts.Communicate(text, voice)
49
  await communicate.save(output_file)
50
  return output_file