Class InterruptionFilter

    • Method Detail

      • threshold

        public final 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.

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

        public final ParticipantRole participantRole()

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

        If the service returns an enum value that is not available in the current SDK version, participantRole will return ParticipantRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from participantRoleAsString().

        Returns:
        Specify the interrupter that you want to flag. Omitting this parameter is equivalent to specifying both participants.
        See Also:
        ParticipantRole
      • participantRoleAsString

        public final String participantRoleAsString()

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

        If the service returns an enum value that is not available in the current SDK version, participantRole will return ParticipantRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from participantRoleAsString().

        Returns:
        Specify the interrupter that you want to flag. Omitting this parameter is equivalent to specifying both participants.
        See Also:
        ParticipantRole
      • absoluteTimeRange

        public final 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.

        Returns:
        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.
      • relativeTimeRange

        public final 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.

        Returns:
        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.
      • negate

        public final Boolean negate()

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

        Returns:
        Set to TRUE to flag speech that does not contain interruptions. Set to FALSE to flag speech that contains interruptions.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)