This message was deleted.
# ask-ai
s
This message was deleted.
g
It seems likely that the error is due to the
CreateSIPParticipantRequest
not having an
enable_krisp
field. According to the CreateSIPParticipantRequest documentation, there is no mention of an
enable_krisp
field as a valid parameter for this request. The error message indicates that the field is not recognized, which aligns with the documentation. Would you like more detail on how to correctly configure SIP participants or any other aspect of the LiveKit SIP API? Sources: - CreateSIPParticipantRequest documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
b
Creating a SIP participant To make outbound calls with SIP Service, create a SIP participant with the
CreateSIPParticipant
API. It returns an
SIPParticipantInfo
object that describes the participant. Outbound calling requires at least one Outbound Trunk.
Copy code
import asyncio

from livekit import api 
from livekit.protocol.sip import CreateSIPParticipantRequest, SIPParticipantInfo

async def main():
  livekit_api = api.LiveKitAPI()

  request = CreateSIPParticipantRequest(
    sip_trunk_id = "<trunk_id>",
    sip_call_to = "<phone_number>",
    room_name = "my-sip-room",
    participant_identity = "sip-test",
    participant_name = "Test Caller",
    krisp_enabled = True,
  )
  
  participant = await livekit_api.sip.create_sip_participant(request)
  
  print(f"Successfully created {participant}")

  await livekit_api.aclose()

asyncio.run(main())

when i look at documentation its enable , why did i take this error
@millions-hair-24956
g
The error arises because the
CreateSIPParticipantRequest
does not support a field named
krisp_enabled
. According to the CreateSipParticipantOptions documentation, the correct field name is
enableKrisp
, not
krisp_enabled
. This discrepancy is likely causing the error in your code. Would you like more detail on how to correctly use the
CreateSIPParticipantRequest
or any other aspect of the LiveKit SIP API? Sources: - CreateSipParticipantOptions documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
b
krisp_enabled = True, no its true parameter @millions-hair-24956
g
The
krisp_enabled
parameter is not documented in the CreateSIPParticipantRequest API. The error you are encountering is because this parameter is not recognized by the API. The documentation does not list
krisp_enabled
as a valid field for creating a SIP participant. If you are looking to enable Krisp noise suppression, it is important to note that this feature is only available on LiveKit Cloud plans and not on self-hosted deployments, as mentioned in the LiveKit Slack discussion. Would you like more information on how to proceed with enabling Krisp or any other features? Sources: - CreateSIPParticipantRequest documentation - LiveKit Slack discussion 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.