Detect Scam Dialog event
The events sent to the client on the Detect Scam Dialog API.
- DetectScamDialogResult
- TranscriptEvent
- SessionMetadata
- ErrorEvent
An event emitted when processing the audio stream has yielded a result.
The scam risk based on the speech content in the audio stream.
ScamDialogRisk (string)Possible values: [SCAM, NEUTRAL]
SCAMThe confidence level of the scamDialogRisk field.
ScamDialogConfidence (string)Possible values: [LOW, HIGH]
HIGHType discriminator.
resultresultAn event emitted when a chunk of the audio stream has been transcribed.
Whether a line of the transcript was spoken by the user or the non-user party.
TranscriptSpeaker (string)Possible values: [USER, SUBJECT]
USERThe transcript line corresponding to a section of the audio stream.
hello good afternoonType discriminator.
transcripttranscriptThe event emitted when the session has been established, as a response to the initial metadata frame sent by the client.
The unique identifier of the session.
Type discriminator.
sessionMetadatasessionMetadataAn event emitted when an error has occurred.
The error message.
Type discriminator.
errorerror{
"scamDialogRisk": "SCAM",
"confidence": "HIGH",
"type": "result"
}