elevenlabs / elevenlabs-python

The official Python API for ElevenLabs Text to Speech.
https://elevenlabs.io/docs/api-reference/getting-started
MIT License
2.23k stars 259 forks source link

Not Getting Signed URL #407

Open Niteshiya opened 1 day ago

Niteshiya commented 1 day ago

Description

Used the basic conversational agent

Error:

Traceback (most recent call last):
  File "/Users/homeos/nitesh/act_reporter/mytest.py", line 64, in <module>
    main()
  File "/Users/homeos/nitesh/act_reporter/mytest.py", line 55, in main
    conversation.start_session()
  File "/Users/homeos/nitesh/act_reporter/venv/lib/python3.12/site-packages/elevenlabs/conversational_ai/conversation.py", line 128, in start_session
    ws_url = self._get_signed_url() if self.requires_auth else self._get_wss_url()
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/homeos/nitesh/act_reporter/venv/lib/python3.12/site-packages/elevenlabs/conversational_ai/conversation.py", line 237, in _get_signed_url
    return response.json()["signed_url"]
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'signed_url'

Rest all the code part works except conversation.start_session() This is where we get this error

Niteshiya commented 10 hours ago

@dsinghvi Please help if possible