Update TextGen/router.py
Browse files- TextGen/router.py +1 -1
TextGen/router.py
CHANGED
@@ -177,7 +177,7 @@ def generate_voice(message: VoiceMessage = None):
|
|
177 |
def audio_stream():
|
178 |
try:
|
179 |
# Generate the audio stream from ElevenLabs
|
180 |
-
for chunk in
|
181 |
yield chunk
|
182 |
except Exception as e:
|
183 |
raise HTTPException(status_code=500, detail=str(e))
|
|
|
177 |
def audio_stream():
|
178 |
try:
|
179 |
# Generate the audio stream from ElevenLabs
|
180 |
+
for chunk in Eleven_client.generate(text=message.input, stream=True):
|
181 |
yield chunk
|
182 |
except Exception as e:
|
183 |
raise HTTPException(status_code=500, detail=str(e))
|