We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5579bf0 commit 406964eCopy full SHA for 406964e
1 file changed
src/elevenlabs/conversational_ai/conversation.py
@@ -990,13 +990,12 @@ async def start_session(self):
990
991
Will run in background task until `end_session` is called.
992
"""
993
- self._connection = self._create_connection()
994
-
995
connection_type = self._determine_connection_type()
996
if connection_type == ConnectionType.WEBSOCKET:
997
ws_url = self._get_signed_url() if self.requires_auth else self._get_wss_url()
998
self._task = asyncio.create_task(self._run_websocket(ws_url))
999
elif connection_type == ConnectionType.WEBRTC:
+ self._connection = self._create_connection()
1000
self._task = asyncio.create_task(self._run_webrtc())
1001
else:
1002
raise ValueError(f"Unsupported connection type: {connection_type}")
0 commit comments