RealtimeMessageResultTranscriptionToken

class oci.ai_speech.models.RealtimeMessageResultTranscriptionToken(**kwargs)

Bases: object

Individual transcription tokens.

Attributes

TYPE_PUNCTUATION A constant which can be used with the type property of a RealtimeMessageResultTranscriptionToken.
TYPE_WORD A constant which can be used with the type property of a RealtimeMessageResultTranscriptionToken.
confidence [Required] Gets the confidence of this RealtimeMessageResultTranscriptionToken.
end_time_in_ms [Required] Gets the end_time_in_ms of this RealtimeMessageResultTranscriptionToken.
start_time_in_ms [Required] Gets the start_time_in_ms of this RealtimeMessageResultTranscriptionToken.
token [Required] Gets the token of this RealtimeMessageResultTranscriptionToken.
type [Required] Gets the type of this RealtimeMessageResultTranscriptionToken.

Methods

__init__(**kwargs) Initializes a new RealtimeMessageResultTranscriptionToken object with values from keyword arguments.
TYPE_PUNCTUATION = 'PUNCTUATION'

A constant which can be used with the type property of a RealtimeMessageResultTranscriptionToken. This constant has a value of “PUNCTUATION”

TYPE_WORD = 'WORD'

A constant which can be used with the type property of a RealtimeMessageResultTranscriptionToken. This constant has a value of “WORD”

__init__(**kwargs)

Initializes a new RealtimeMessageResultTranscriptionToken object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • token (str) – The value to assign to the token property of this RealtimeMessageResultTranscriptionToken.
  • start_time_in_ms (int) – The value to assign to the start_time_in_ms property of this RealtimeMessageResultTranscriptionToken.
  • end_time_in_ms (int) – The value to assign to the end_time_in_ms property of this RealtimeMessageResultTranscriptionToken.
  • confidence (float) – The value to assign to the confidence property of this RealtimeMessageResultTranscriptionToken.
  • type (str) – The value to assign to the type property of this RealtimeMessageResultTranscriptionToken. Allowed values for this property are: “WORD”, “PUNCTUATION”
confidence

[Required] Gets the confidence of this RealtimeMessageResultTranscriptionToken. Confidence score for the transcription token.

Returns:The confidence of this RealtimeMessageResultTranscriptionToken.
Return type:float
end_time_in_ms

[Required] Gets the end_time_in_ms of this RealtimeMessageResultTranscriptionToken. End time in milliseconds for the transcription token.

Returns:The end_time_in_ms of this RealtimeMessageResultTranscriptionToken.
Return type:int
start_time_in_ms

[Required] Gets the start_time_in_ms of this RealtimeMessageResultTranscriptionToken. Start time in milliseconds for the transcription token.

Returns:The start_time_in_ms of this RealtimeMessageResultTranscriptionToken.
Return type:int
token

[Required] Gets the token of this RealtimeMessageResultTranscriptionToken. Transcription token.

Returns:The token of this RealtimeMessageResultTranscriptionToken.
Return type:str
type

[Required] Gets the type of this RealtimeMessageResultTranscriptionToken. Type of the transcription token.

Allowed values for this property are: “WORD”, “PUNCTUATION”

Returns:The type of this RealtimeMessageResultTranscriptionToken.
Return type:str