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 Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description MotorAudioFileConverterbuild()Builds and returns aMotorAudioFileConverterinstance based on the set parameters.MotorAudioFileConverter.BuilderchatMotor(ChatMotor chatMotor)Sets the ChatMotor instance to be used for the conversion.MotorAudioFileConverter.BuilderconversionFormat(String conversionFormat)Sets the format to which the audio file should be converted.MotorAudioFileConverter.BuilderinputFilePath(String inputFilePath)Sets the input file path of the audio file to be converted.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
chatMotor
Sets the ChatMotor instance to be used for the conversion.- Parameters:
chatMotor- the ChatMotor instance- Returns:
- this Builder instance for chaining
-
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
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
Builds and returns aMotorAudioFileConverterinstance based on the set parameters.- Returns:
- a new
MotorAudioFileConverter - Throws:
IllegalArgumentException- if the chatMotor or inputFilePath is not provided
-