Ahmed0011 commited on
Commit
ce3e18b
·
verified ·
1 Parent(s): 47263f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -61,7 +61,8 @@ async def model(text):
61
  async def respond(audio):
62
  user = await transcribe(audio)
63
  reply = await model(user)
64
- communicate = edge_tts.Communicate(reply)
 
65
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
66
  tmp_path = tmp_file.name
67
  await communicate.save(tmp_path)
 
61
  async def respond(audio):
62
  user = await transcribe(audio)
63
  reply = await model(user)
64
+ communicate = edge_tts.Communicate(reply, voice="en-US-AriaNeural") # Example voice
65
+ ##communicate = edge_tts.Communicate(reply)
66
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
67
  tmp_path = tmp_file.name
68
  await communicate.save(tmp_path)