Contact Center AI Insights V1 API - Class Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment (v1.1.0)

Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment.

A segment of a full transcript.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#channel_tag

def channel_tag() -> ::Integer
Returns
  • (::Integer) — For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.

#channel_tag=

def channel_tag=(value) -> ::Integer
Parameter
  • value (::Integer) — For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.
Returns
  • (::Integer) — For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.

#confidence

def confidence() -> ::Float
Returns
  • (::Float) — A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.

#confidence=

def confidence=(value) -> ::Float
Parameter
  • value (::Float) — A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.
Returns
  • (::Float) — A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.

#dialogflow_segment_metadata

def dialogflow_segment_metadata() -> ::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata

#dialogflow_segment_metadata=

def dialogflow_segment_metadata=(value) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata
Parameter

#language_code

def language_code() -> ::String
Returns
  • (::String) — The language code of this segment as a BCP-47 language tag. Example: "en-US".

#language_code=

def language_code=(value) -> ::String
Parameter
  • value (::String) — The language code of this segment as a BCP-47 language tag. Example: "en-US".
Returns
  • (::String) — The language code of this segment as a BCP-47 language tag. Example: "en-US".

#message_time

def message_time() -> ::Google::Protobuf::Timestamp
Returns

#message_time=

def message_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#segment_participant

def segment_participant() -> ::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant
Returns

#segment_participant=

def segment_participant=(value) -> ::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant
Parameter
Returns

#sentiment

def sentiment() -> ::Google::Cloud::ContactCenterInsights::V1::SentimentData
Returns

#sentiment=

def sentiment=(value) -> ::Google::Cloud::ContactCenterInsights::V1::SentimentData
Parameter
Returns

#text

def text() -> ::String
Returns
  • (::String) — The text of this segment.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — The text of this segment.
Returns
  • (::String) — The text of this segment.

#words

def words() -> ::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::WordInfo>
Returns

#words=

def words=(value) -> ::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::WordInfo>
Parameter
Returns