Interface InterruptionFilter.Builder

All Superinterfaces:
Buildable, CopyableBuilder<InterruptionFilter.Builder,InterruptionFilter>, SdkBuilder<InterruptionFilter.Builder,InterruptionFilter>, SdkPojo
Enclosing class:
InterruptionFilter

@Mutable @NotThreadSafe public static interface InterruptionFilter.Builder extends SdkPojo, CopyableBuilder<InterruptionFilter.Builder,InterruptionFilter>
  • Method Details

    • threshold

      InterruptionFilter.Builder threshold(Long threshold)

      Specify the duration of the interruptions in milliseconds. For example, you can flag speech that contains more than 10,000 milliseconds of interruptions.

      Parameters:
      threshold - Specify the duration of the interruptions in milliseconds. For example, you can flag speech that contains more than 10,000 milliseconds of interruptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • participantRole

      InterruptionFilter.Builder participantRole(String participantRole)

      Specify the interrupter that you want to flag. Omitting this parameter is equivalent to specifying both participants.

      Parameters:
      participantRole - Specify the interrupter that you want to flag. Omitting this parameter is equivalent to specifying both participants.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • participantRole

      InterruptionFilter.Builder participantRole(ParticipantRole participantRole)

      Specify the interrupter that you want to flag. Omitting this parameter is equivalent to specifying both participants.

      Parameters:
      participantRole - Specify the interrupter that you want to flag. Omitting this parameter is equivalent to specifying both participants.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • absoluteTimeRange

      InterruptionFilter.Builder absoluteTimeRange(AbsoluteTimeRange absoluteTimeRange)

      Makes it possible to specify a time range (in milliseconds) in your audio, during which you want to search for an interruption. See for more detail.

      Parameters:
      absoluteTimeRange - Makes it possible to specify a time range (in milliseconds) in your audio, during which you want to search for an interruption. See for more detail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • absoluteTimeRange

      default InterruptionFilter.Builder absoluteTimeRange(Consumer<AbsoluteTimeRange.Builder> absoluteTimeRange)

      Makes it possible to specify a time range (in milliseconds) in your audio, during which you want to search for an interruption. See for more detail.

      This is a convenience method that creates an instance of the AbsoluteTimeRange.Builder avoiding the need to create one manually via AbsoluteTimeRange.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to absoluteTimeRange(AbsoluteTimeRange).

      Parameters:
      absoluteTimeRange - a consumer that will call methods on AbsoluteTimeRange.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • relativeTimeRange

      InterruptionFilter.Builder relativeTimeRange(RelativeTimeRange relativeTimeRange)

      Makes it possible to specify a time range (in percentage) in your media file, during which you want to search for an interruption. See for more detail.

      Parameters:
      relativeTimeRange - Makes it possible to specify a time range (in percentage) in your media file, during which you want to search for an interruption. See for more detail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relativeTimeRange

      default InterruptionFilter.Builder relativeTimeRange(Consumer<RelativeTimeRange.Builder> relativeTimeRange)

      Makes it possible to specify a time range (in percentage) in your media file, during which you want to search for an interruption. See for more detail.

      This is a convenience method that creates an instance of the RelativeTimeRange.Builder avoiding the need to create one manually via RelativeTimeRange.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to relativeTimeRange(RelativeTimeRange).

      Parameters:
      relativeTimeRange - a consumer that will call methods on RelativeTimeRange.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • negate

      Set to TRUE to flag speech that does not contain interruptions. Set to FALSE to flag speech that contains interruptions.

      Parameters:
      negate - Set to TRUE to flag speech that does not contain interruptions. Set to FALSE to flag speech that contains interruptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.