Participant
Represents a CCAI participant instance.
Methods
addEventListener
Adds a handler for the specified CCAI.Events.Participant event. Use only functions as handlers; anything except a function leads to an error and scenario termination when a handler is called.
Parameters
event
callback
addPlaybackMarker
Adds a Dialogflow speech synthesis playback marker. The CCAI.Events.Participant.MarkerReached event is triggered when the marker is reached.
Parameters
offset
playbackId
analyzeContent
Adds a message from a participant into the Dialogflow CCAI.
Parameters
query
call
Returns the call associated with the participant.
id
Returns the participant’s id.
removeEventListener
Removes a handler for the specified CCAI.Events.Participant event.
Parameters
event
callback
sendMediaTo
Starts sending media (voice) from the Dialogflow participant to the media unit.
Parameters
mediaUnit
parameters
stopMediaTo
Stops sending voice from the Dialogflow participant to the media unit.
Parameters
mediaUnit