Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ chat_history = []
|
|
29 |
|
30 |
async def text_to_speech_stream(text, voice_volume=1.0):
|
31 |
"""Convert text to speech using edge_tts and return the audio file path."""
|
32 |
-
communicate = edge_tts.Communicate(text, "en-US-
|
33 |
audio_data = b""
|
34 |
|
35 |
async for chunk in communicate.stream():
|
|
|
29 |
|
30 |
async def text_to_speech_stream(text, voice_volume=1.0):
|
31 |
"""Convert text to speech using edge_tts and return the audio file path."""
|
32 |
+
communicate = edge_tts.Communicate(text, "en-US-BrianMultilingualNeural")
|
33 |
audio_data = b""
|
34 |
|
35 |
async for chunk in communicate.stream():
|