Class SpeedStage
java.lang.Object
bg.codexio.ai.openai.api.sdk.voice.speech.SpeechConfigurationStage
bg.codexio.ai.openai.api.sdk.voice.speech.SpeedStage
- All Implemented Interfaces:
IntermediateStage
Configures the speed of the output audio file
-
Field Summary
Fields inherited from class bg.codexio.ai.openai.api.sdk.voice.speech.SpeechConfigurationStage
executor, requestBuilder -
Method Summary
Modifier and TypeMethodDescriptionfast()Configures theSpeedasSpeed.TWICE_FASTERplayback(double speed) Configures a speed between 0.25 and 4playback(bg.codexio.ai.openai.api.payload.voice.Speed speed) Configures aSpeedConfigures theSpeedasSpeed.NORMALslow()Configures theSpeedasSpeed.HALF_SLOW
-
Method Details
-
playback
Configures a speed between 0.25 and 4- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-
playback
Configures aSpeed- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-
sameSpeed
Configures theSpeedasSpeed.NORMAL- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-
slow
Configures theSpeedasSpeed.HALF_SLOW- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-
fast
Configures theSpeedasSpeed.TWICE_FASTER- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-