RealtimeMessageResult¶
- class oci.ai_speech.models.RealtimeMessageResult(**kwargs)¶
Bases:
RealtimeMessageThe websocket result message received from service.
Attributes:
A constant which can be used with the event property of a RealtimeMessage.
A constant which can be used with the event property of a RealtimeMessage.
A constant which can be used with the event property of a RealtimeMessage.
A constant which can be used with the event property of a RealtimeMessage.
[Required] Gets the event of this RealtimeMessage.
Gets the session_id of this RealtimeMessage.
[Required] Gets the transcriptions of this RealtimeMessageResult.
Methods:
__init__(**kwargs)Initializes a new RealtimeMessageResult object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- EVENT_ACKAUDIO = 'ACKAUDIO'¶
A constant which can be used with the event property of a RealtimeMessage. This constant has a value of “ACKAUDIO”
- EVENT_CONNECT = 'CONNECT'¶
A constant which can be used with the event property of a RealtimeMessage. This constant has a value of “CONNECT”
- EVENT_ERROR = 'ERROR'¶
A constant which can be used with the event property of a RealtimeMessage. This constant has a value of “ERROR”
- EVENT_RESULT = 'RESULT'¶
A constant which can be used with the event property of a RealtimeMessage. This constant has a value of “RESULT”
- __init__(**kwargs)¶
Initializes a new RealtimeMessageResult object with values from keyword arguments. The default value of the
eventattribute of this class isRESULTand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
event (str) – The value to assign to the event property of this RealtimeMessageResult. Allowed values for this property are: “RESULT”, “ACKAUDIO”, “ERROR”, “CONNECT”
session_id (str) – The value to assign to the session_id property of this RealtimeMessageResult.
transcriptions (list[oci.ai_speech.models.RealtimeMessageResultTranscription]) – The value to assign to the transcriptions property of this RealtimeMessageResult.
- property event¶
[Required] Gets the event of this RealtimeMessage. Incoming Types of message event sent from Service -> Client - RESULT - result - ACKAUDIO - ackAudio - ERROR - error - CONNECT - connect Outgoing Types of message event sent from Client -> Service - SEND_FINAL_RESULT - sendFinalResult
Allowed values for this property are: “RESULT”, “ACKAUDIO”, “ERROR”, “CONNECT”
- Returns
The event of this RealtimeMessage.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property session_id¶
Gets the session_id of this RealtimeMessage. Session ID for the connected session.
- Returns
The session_id of this RealtimeMessage.
- Return type
str
- property transcriptions¶
[Required] Gets the transcriptions of this RealtimeMessageResult. List of transcription objects.
- Returns
The transcriptions of this RealtimeMessageResult.
- Return type
list[oci.ai_speech.models.RealtimeMessageResultTranscription]