elevenlabs / elevenlabs-docs

Documentation for elevenlabs.io/docs
https://elevenlabs.io/docs
66 stars 287 forks source link

Conversation AI Twilio + Python #519

Open Bayesian4042 opened 3 days ago

Bayesian4042 commented 3 days ago

Path: /conversational-ai/guides/conversational-ai-twilio The code given in the Path, not able to handle the multiple calls as previous call is not properly cleaned up and next call just throw errors: sent 1000 (OK); no close frame received

louisjoecodes commented 3 days ago

Hey - thank you for raising this to us. We will act on this today - will keep this issue up to date.

dhavalmehtas commented 2 days ago

Also, it doesn't end well—after ending the call and calling again, it gives an error message that "WebSocket closed, stopping audio processing," and you have to re-run the application.

louisjoecodes commented 2 days ago

Roger that - I am working on updating the code. Have you found a fix for this?

dhavalmehtas commented 2 days ago

not yet, It seems it has to do something with how conversation.end_session() works. I tried different approaches but I guess the fix has to be in conversation.py. still checking..

Bayesian4042 commented 1 day ago

@louisjoecodes I also get this error, even though the call has been disconnected: websockets.exceptions.ConnectionClosedError: received 1011 (internal error) Unexpected error in websocket endpoint: Conversation has exceeded maximum duration; then sent 1011 (internal error) Unexpected error in websocket endpoint: Conversation has exceeded maximum duration

louisjoecodes commented 23 hours ago

Hey folks - while we recreate the guide for Python - I have just pushed a full example project using Javascript: https://github.com/elevenlabs/elevenlabs-examples/tree/main/examples/conversational-ai/twilio/javascript

Thank you for your patience!

sh3pst1 commented 5 hours ago

Hey folks - while we recreate the guide for Python - I have just pushed a full example project using Javascript: https://github.com/elevenlabs/elevenlabs-examples/tree/main/examples/conversational-ai/twilio/javascript

Thank you for your patience!

Hey, this one worked fine until a couple of hours ago. Then it all stopped working. The "First message" get cracked up, none of my input seems to go in and the call disconnects. Same result running local as in production. Any ideas ?