Class: Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/contactcenterinsights/v1/resources.rb

Overview

A message representing the transcript of a conversation.

Defined Under Namespace

Classes: TranscriptSegment

Instance Attribute Summary collapse

Instance Attribute Details

#transcript_segments::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment>

Returns A list of sequential transcript segments that comprise the conversation.

Returns:



155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 155

class Transcript
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A segment of a full transcript.
  # @!attribute [rw] message_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The time that the message occurred, if provided.
  # @!attribute [rw] text
  #   @return [::String]
  #     The text of this segment.
  # @!attribute [rw] confidence
  #   @return [::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.
  # @!attribute [rw] words
  #   @return [::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::WordInfo>]
  #     A list of the word-specific information for each word in the segment.
  # @!attribute [rw] language_code
  #   @return [::String]
  #     The language code of this segment as a
  #     [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
  #     Example: "en-US".
  # @!attribute [rw] channel_tag
  #   @return [::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.
  # @!attribute [rw] segment_participant
  #   @return [::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant]
  #     The participant of this segment.
  # @!attribute [rw] dialogflow_segment_metadata
  #   @return [::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata]
  #     CCAI metadata relating to the current transcript segment.
  # @!attribute [rw] sentiment
  #   @return [::Google::Cloud::ContactCenterInsights::V1::SentimentData]
  #     The sentiment for this transcript segment.
  class TranscriptSegment
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Word-level info for words in a transcript.
    # @!attribute [rw] start_offset
    #   @return [::Google::Protobuf::Duration]
    #     Time offset of the start of this word relative to the beginning of
    #     the total conversation.
    # @!attribute [rw] end_offset
    #   @return [::Google::Protobuf::Duration]
    #     Time offset of the end of this word relative to the beginning of the
    #     total conversation.
    # @!attribute [rw] word
    #   @return [::String]
    #     The word itself. Includes punctuation marks that surround the word.
    # @!attribute [rw] confidence
    #   @return [::Float]
    #     A confidence estimate between 0.0 and 1.0 of the fidelity of this
    #     word. A default value of 0.0 indicates that the value is unset.
    class WordInfo
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Metadata from Dialogflow relating to the current transcript segment.
    # @!attribute [rw] smart_reply_allowlist_covered
    #   @return [::Boolean]
    #     Whether the transcript segment was covered under the configured smart
    #     reply allowlist in Agent Assist.
    class DialogflowSegmentMetadata
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end
end