Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb

Overview

A segment of a full transcript.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment

Returns a new instance of GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment.



763
764
765
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 763

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#channel_tagFixnum

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. Corresponds to the JSON property channelTag

Returns:

  • (Fixnum)


734
735
736
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 734

def channel_tag
  @channel_tag
end

#confidenceFloat

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. Corresponds to the JSON property confidence

Returns:

  • (Float)


740
741
742
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 740

def confidence
  @confidence
end

#language_codeString

The language code of this segment as a BCP-47 language tag. Example: "en-US". Corresponds to the JSON property languageCode

Returns:

  • (String)


746
747
748
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 746

def language_code
  @language_code
end

#segment_participantGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationParticipant

The call participant speaking for a given utterance. Corresponds to the JSON property segmentParticipant



751
752
753
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 751

def segment_participant
  @segment_participant
end

#textString

The text of this segment. Corresponds to the JSON property text

Returns:

  • (String)


756
757
758
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 756

def text
  @text
end

#wordsArray<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo>

A list of the word-specific information for each word in the segment. Corresponds to the JSON property words



761
762
763
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 761

def words
  @words
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



768
769
770
771
772
773
774
775
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 768

def update!(**args)
  @channel_tag = args[:channel_tag] if args.key?(:channel_tag)
  @confidence = args[:confidence] if args.key?(:confidence)
  @language_code = args[:language_code] if args.key?(:language_code)
  @segment_participant = args[:segment_participant] if args.key?(:segment_participant)
  @text = args[:text] if args.key?(:text)
  @words = args[:words] if args.key?(:words)
end