Interface SubtitlingConfig.Builder

  • Method Details

    • language

      SubtitlingConfig.Builder language(String language)

      The language of the audio in the source media. Elemental Inference uses this setting to optimize transcription accuracy. Specify the language using an ISO 639-2/T three-letter code, optionally with a region subtag. Supported values: eng, eng-au, eng-gb, eng-us, fra, ita, deu, spa, por.

      Parameters:
      language - The language of the audio in the source media. Elemental Inference uses this setting to optimize transcription accuracy. Specify the language using an ISO 639-2/T three-letter code, optionally with a region subtag. Supported values: eng, eng-au, eng-gb, eng-us, fra, ita, deu, spa, por.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • language

      The language of the audio in the source media. Elemental Inference uses this setting to optimize transcription accuracy. Specify the language using an ISO 639-2/T three-letter code, optionally with a region subtag. Supported values: eng, eng-au, eng-gb, eng-us, fra, ita, deu, spa, por.

      Parameters:
      language - The language of the audio in the source media. Elemental Inference uses this setting to optimize transcription accuracy. Specify the language using an ISO 639-2/T three-letter code, optionally with a region subtag. Supported values: eng, eng-au, eng-gb, eng-us, fra, ita, deu, spa, por.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • aspectRatio

      SubtitlingConfig.Builder aspectRatio(AspectRatio aspectRatio)

      The aspect ratio of the output video, specified as width and height integer values. Elemental Inference uses the aspect ratio to determine subtitle layout and line lengths.

      Parameters:
      aspectRatio - The aspect ratio of the output video, specified as width and height integer values. Elemental Inference uses the aspect ratio to determine subtitle layout and line lengths.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aspectRatio

      default SubtitlingConfig.Builder aspectRatio(Consumer<AspectRatio.Builder> aspectRatio)

      The aspect ratio of the output video, specified as width and height integer values. Elemental Inference uses the aspect ratio to determine subtitle layout and line lengths.

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

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

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

      SubtitlingConfig.Builder dictionary(String dictionary)

      The ID of a custom dictionary to improve transcription accuracy for domain-specific terminology. Use the CreateDictionary operation to create a dictionary.

      Parameters:
      dictionary - The ID of a custom dictionary to improve transcription accuracy for domain-specific terminology. Use the CreateDictionary operation to create a dictionary.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • profanityFilter

      SubtitlingConfig.Builder profanityFilter(String profanityFilter)

      Controls how profanity is handled in the generated subtitles. Valid values: DISABLED (no filtering, default), CENSOR (replace profanity with asterisks), DROP (remove profanity from the transcript).

      Parameters:
      profanityFilter - Controls how profanity is handled in the generated subtitles. Valid values: DISABLED (no filtering, default), CENSOR (replace profanity with asterisks), DROP (remove profanity from the transcript).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • profanityFilter

      SubtitlingConfig.Builder profanityFilter(ProfanityFilterMode profanityFilter)

      Controls how profanity is handled in the generated subtitles. Valid values: DISABLED (no filtering, default), CENSOR (replace profanity with asterisks), DROP (remove profanity from the transcript).

      Parameters:
      profanityFilter - Controls how profanity is handled in the generated subtitles. Valid values: DISABLED (no filtering, default), CENSOR (replace profanity with asterisks), DROP (remove profanity from the transcript).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: