Interface EnrollmentConfig.Builder

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

public static interface EnrollmentConfig.Builder extends SdkPojo, CopyableBuilder<EnrollmentConfig.Builder,EnrollmentConfig>
  • Method Details

    • existingEnrollmentAction

      EnrollmentConfig.Builder existingEnrollmentAction(String existingEnrollmentAction)

      The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP, which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.

      Parameters:
      existingEnrollmentAction - The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP, which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • existingEnrollmentAction

      EnrollmentConfig.Builder existingEnrollmentAction(ExistingEnrollmentAction existingEnrollmentAction)

      The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP, which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.

      Parameters:
      existingEnrollmentAction - The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP, which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fraudDetectionConfig

      EnrollmentConfig.Builder fraudDetectionConfig(EnrollmentJobFraudDetectionConfig fraudDetectionConfig)

      The fraud detection configuration to use for the speaker enrollment job.

      Parameters:
      fraudDetectionConfig - The fraud detection configuration to use for the speaker enrollment job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fraudDetectionConfig

      default EnrollmentConfig.Builder fraudDetectionConfig(Consumer<EnrollmentJobFraudDetectionConfig.Builder> fraudDetectionConfig)

      The fraud detection configuration to use for the speaker enrollment job.

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

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

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