Interface UtteranceEvent.Builder

    • Method Detail

      • utteranceId

        UtteranceEvent.Builder utteranceId​(String utteranceId)

        The unique identifier that is associated with the specified UtteranceEvent.

        Parameters:
        utteranceId - The unique identifier that is associated with the specified UtteranceEvent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isPartial

        UtteranceEvent.Builder isPartial​(Boolean isPartial)

        Indicates whether the segment in the UtteranceEvent is complete (FALSE) or partial (TRUE).

        Parameters:
        isPartial - Indicates whether the segment in the UtteranceEvent is complete (FALSE) or partial (TRUE).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • participantRole

        UtteranceEvent.Builder participantRole​(String participantRole)

        Provides the role of the speaker for each audio channel, either CUSTOMER or AGENT.

        Parameters:
        participantRole - Provides the role of the speaker for each audio channel, either CUSTOMER or AGENT.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ParticipantRole, ParticipantRole
      • participantRole

        UtteranceEvent.Builder participantRole​(ParticipantRole participantRole)

        Provides the role of the speaker for each audio channel, either CUSTOMER or AGENT.

        Parameters:
        participantRole - Provides the role of the speaker for each audio channel, either CUSTOMER or AGENT.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ParticipantRole, ParticipantRole
      • beginOffsetMillis

        UtteranceEvent.Builder beginOffsetMillis​(Long beginOffsetMillis)

        The time, in milliseconds, from the beginning of the audio stream to the start of the UtteranceEvent.

        Parameters:
        beginOffsetMillis - The time, in milliseconds, from the beginning of the audio stream to the start of the UtteranceEvent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endOffsetMillis

        UtteranceEvent.Builder endOffsetMillis​(Long endOffsetMillis)

        The time, in milliseconds, from the beginning of the audio stream to the start of the UtteranceEvent.

        Parameters:
        endOffsetMillis - The time, in milliseconds, from the beginning of the audio stream to the start of the UtteranceEvent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transcript

        UtteranceEvent.Builder transcript​(String transcript)

        Contains transcribed text.

        Parameters:
        transcript - Contains transcribed text.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        UtteranceEvent.Builder items​(Collection<CallAnalyticsItem> items)

        Contains words, phrases, or punctuation marks that are associated with the specified UtteranceEvent.

        Parameters:
        items - Contains words, phrases, or punctuation marks that are associated with the specified UtteranceEvent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        UtteranceEvent.Builder items​(CallAnalyticsItem... items)

        Contains words, phrases, or punctuation marks that are associated with the specified UtteranceEvent.

        Parameters:
        items - Contains words, phrases, or punctuation marks that are associated with the specified UtteranceEvent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entities

        UtteranceEvent.Builder entities​(Collection<CallAnalyticsEntity> entities)

        Contains entities identified as personally identifiable information (PII) in your transcription output.

        Parameters:
        entities - Contains entities identified as personally identifiable information (PII) in your transcription output.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entities

        UtteranceEvent.Builder entities​(CallAnalyticsEntity... entities)

        Contains entities identified as personally identifiable information (PII) in your transcription output.

        Parameters:
        entities - Contains entities identified as personally identifiable information (PII) in your transcription output.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sentiment

        UtteranceEvent.Builder sentiment​(String sentiment)

        Provides the sentiment that was detected in the specified segment.

        Parameters:
        sentiment - Provides the sentiment that was detected in the specified segment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Sentiment, Sentiment
      • sentiment

        UtteranceEvent.Builder sentiment​(Sentiment sentiment)

        Provides the sentiment that was detected in the specified segment.

        Parameters:
        sentiment - Provides the sentiment that was detected in the specified segment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Sentiment, Sentiment
      • issuesDetected

        UtteranceEvent.Builder issuesDetected​(Collection<IssueDetected> issuesDetected)

        Provides the issue that was detected in the specified segment.

        Parameters:
        issuesDetected - Provides the issue that was detected in the specified segment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • issuesDetected

        UtteranceEvent.Builder issuesDetected​(IssueDetected... issuesDetected)

        Provides the issue that was detected in the specified segment.

        Parameters:
        issuesDetected - Provides the issue that was detected in the specified segment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.