Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversational AI Twilio + Python #519

Open
Bayesian4042 opened this issue Nov 19, 2024 · 10 comments
Open

Conversational AI Twilio + Python #519

Bayesian4042 opened this issue Nov 19, 2024 · 10 comments
Assignees
Labels
bug Something isn't working d-easy Simple issues but requires minimal code or documentation changes. s-high High impact, affecting significant features or many users.

Comments

@Bayesian4042
Copy link

Bayesian4042 commented Nov 19, 2024

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
Copy link
Collaborator

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

@louisjoecodes louisjoecodes self-assigned this Nov 19, 2024
@dhavalmehtas
Copy link

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
Copy link
Collaborator

louisjoecodes commented Nov 20, 2024

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

@dhavalmehtas
Copy link

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
Copy link
Author

@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
Copy link
Collaborator

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
Copy link

sh3pst1 commented Nov 22, 2024

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 ?

@Bayesian4042 Bayesian4042 changed the title Conversation AI Twilio + Python Conversational AI Twilio + Python Nov 22, 2024
@louisjoecodes
Copy link
Collaborator

Hey @sh3pst1 sorry you are experiencing this - could you confirm which SDK/version you are using?

I have updated our Swift SDK as we now require an initiation web socket message to be sent from the client to begin the conversation.

{"type":"conversation_initiation_client_data"}

@sh3pst1
Copy link

sh3pst1 commented Nov 25, 2024

Hey @sh3pst1 sorry you are experiencing this - could you confirm which SDK/version you are using?

I have updated our Swift SDK as we now require an initiation web socket message to be sent from the client to begin the conversation.

{"type":"conversation_initiation_client_data"}

Yes, I followed your guide from here https://github.com/elevenlabs/elevenlabs-examples/tree/main/examples/conversational-ai/twilio/javascript

@louisjoecodes
Copy link
Collaborator

Let me check the scripts and update them if necessary.

@louisjoecodes louisjoecodes added bug Something isn't working d-easy Simple issues but requires minimal code or documentation changes. s-high High impact, affecting significant features or many users. labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working d-easy Simple issues but requires minimal code or documentation changes. s-high High impact, affecting significant features or many users.
Projects
None yet
Development

No branches or pull requests

4 participants