Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ 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, voice="en-US-
|
65 |
##communicate = edge_tts.Communicate(reply)
|
66 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
|
67 |
tmp_path = tmp_file.name
|
|
|
61 |
async def respond(audio):
|
62 |
user = await transcribe(audio)
|
63 |
reply = await model(user)
|
64 |
+
communicate = edge_tts.Communicate(reply, voice="en-US-AnaNeural") # 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
|