TextToAudioExecutionSettings.Builder Class
- java.
lang. Object - com.
microsoft. semantickernel. services. audio. TextToAudioExecutionSettings. Builder
- com.
public static class TextToAudioExecutionSettings.Builder
Represents a builder for text to audio execution settings.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Text |
build()
Builds the settings. |
| Builder |
withResponseFormat(String responseFormat)
Sets the response format, e. |
| Builder |
withSpeed(Double speed)
Sets the speed of the audio generation. |
| Builder |
withVoice(String voice)
Sets the voice to use for the audio generation. |
Methods inherited from java.lang.Object
Method Details
build
public TextToAudioExecutionSettings build()
Builds the settings.
Returns:
withResponseFormat
public TextToAudioExecutionSettings.Builder withResponseFormat(String responseFormat)
Sets the response format, e.g "mp3", "opus", "aac", "flak"
Parameters:
Returns:
withSpeed
public TextToAudioExecutionSettings.Builder withSpeed(Double speed)
Sets the speed of the audio generation.
Parameters:
Returns:
withVoice
public TextToAudioExecutionSettings.Builder withVoice(String voice)
Sets the voice to use for the audio generation.
Parameters:
Returns: