IMcaFeedLiveTranscriptActionRequest

This represents the FeedLiveTranscript operation's request object.

Functions

setMessage

Function to set the transcript message.

setMessage(message: string): void;

setMessageId

Function to set the message ID for a transcript message.

setMessageId(messageId: string): void;

setRole

Function to set the role for a transcript message.

setRole(role: string): void; // role can be 'AGENT' or 'END_USER'

Set the role as AGENT if the transcript message is from an agent.

Set the role as END_USER if the transcript message is from an end user.

setState

Function to set the state for a transcript message.

setState(state: string): void; // state can be 'STARTED', 'INPROGRESS' or 'COMPLETE'

Set the state as STARTED if the result of the transcription from the audio to text service isn't yet received.

Set the state as INPROGRESS if the result of the transcription from the audio to text service is partial or not final.

Set the state as COMPLETE if the result of the transcription from the audio to text service is complete or final.

setTime

Function to set the time for a transcript message.

setTime(time: number): void; // time as the epoch time. eg: Date.now()