Class MotorAudioFileConverter.Builder

java.lang.Object
com.chatmotorapi.api.transcription.MotorAudioFileConverter.Builder
Enclosing class:
MotorAudioFileConverter

public static class MotorAudioFileConverter.Builder
extends Object
Builder class for creating a MotorAudioFileConverter instance.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • chatMotor

      public MotorAudioFileConverter.Builder chatMotor​(ChatMotor chatMotor)
      Sets the ChatMotor instance to be used for the conversion.
      Parameters:
      chatMotor - the ChatMotor instance
      Returns:
      this Builder instance for chaining
    • inputFilePath

      public MotorAudioFileConverter.Builder inputFilePath​(String inputFilePath)
      Sets the input file path of the audio file to be converted.
      Parameters:
      inputFilePath - the file path of the audio file
      Returns:
      this builder instance for chaining
    • conversionFormat

      public MotorAudioFileConverter.Builder conversionFormat​(String conversionFormat)
      Sets the format to which the audio file should be converted.
      Parameters:
      conversionFormat - the target format for the conversion (e.g., "MP4" or "mp4")
      Returns:
      this builder instance for chaining
    • build

      public MotorAudioFileConverter build()
      Builds and returns a MotorAudioFileConverter instance based on the set parameters.
      Returns:
      a new MotorAudioFileConverter
      Throws:
      IllegalArgumentException - if the chatMotor or inputFilePath is not provided