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
public class SpeedStage extends SpeechConfigurationStage implements 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpeechRuntimeSelectionStagefast()Configures theSpeedasSpeed.TWICE_FASTERSpeechRuntimeSelectionStageplayback(double speed)Configures a speed between 0.25 and 4SpeechRuntimeSelectionStageplayback(bg.codexio.ai.openai.api.payload.voice.Speed speed)Configures aSpeedSpeechRuntimeSelectionStagesameSpeed()Configures theSpeedasSpeed.NORMALSpeechRuntimeSelectionStageslow()Configures theSpeedasSpeed.HALF_SLOW
-
-
-
Method Detail
-
playback
public SpeechRuntimeSelectionStage playback(double speed)
Configures a speed between 0.25 and 4- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-
playback
public SpeechRuntimeSelectionStage playback(bg.codexio.ai.openai.api.payload.voice.Speed speed)
Configures aSpeed- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-
sameSpeed
public SpeechRuntimeSelectionStage sameSpeed()
Configures theSpeedasSpeed.NORMAL- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-
slow
public SpeechRuntimeSelectionStage slow()
Configures theSpeedasSpeed.HALF_SLOW- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-
fast
public SpeechRuntimeSelectionStage fast()
Configures theSpeedasSpeed.TWICE_FASTER- Returns:
SpeechRuntimeSelectionStageto select blocking or async runtime
-
-