Class TextToAudioExecutionSettings.Builder
- java.lang.Object
-
- com.microsoft.semantickernel.services.audio.TextToAudioExecutionSettings.Builder
-
- Enclosing class:
- TextToAudioExecutionSettings
public static class TextToAudioExecutionSettings.Builder extends Object
Represents a builder for text to audio execution settings.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextToAudioExecutionSettingsbuild()Builds the settings.TextToAudioExecutionSettings.BuilderwithResponseFormat(String responseFormat)Sets the response format, e.g "mp3", "opus", "aac", "flak"TextToAudioExecutionSettings.BuilderwithSpeed(Double speed)Sets the speed of the audio generation.TextToAudioExecutionSettings.BuilderwithVoice(String voice)Sets the voice to use for the audio generation.
-
-
-
Method Detail
-
withVoice
public TextToAudioExecutionSettings.Builder withVoice(String voice)
Sets the voice to use for the audio generation.- Parameters:
voice- The voice.- Returns:
- The builder.
-
withResponseFormat
public TextToAudioExecutionSettings.Builder withResponseFormat(String responseFormat)
Sets the response format, e.g "mp3", "opus", "aac", "flak"- Parameters:
responseFormat- The response format.- Returns:
- The builder.
-
withSpeed
public TextToAudioExecutionSettings.Builder withSpeed(Double speed)
Sets the speed of the audio generation.- Parameters:
speed- The speed.- Returns:
- The builder.
-
build
public TextToAudioExecutionSettings build()
Builds the settings.- Returns:
- The settings.
-
-