Class OutputStage
- java.lang.Object
-
- bg.codexio.ai.openai.api.sdk.voice.speech.SpeechConfigurationStage
-
- bg.codexio.ai.openai.api.sdk.voice.speech.OutputStage
-
- All Implemented Interfaces:
IntermediateStage
public class OutputStage extends SpeechConfigurationStage implements IntermediateStage
Configures the output format
-
-
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 SpeedStageaudio(bg.codexio.ai.openai.api.payload.voice.AudioFormat format)SetsAudioFormatSpeedStageforLowerRates()SetsAudioFormatoptimized for lower rates, asAudioFormat.AACSpeedStageforStreaming()SetsAudioFormatoptimized for streaming, asAudioFormat.OPUSSpeedStagemp3()SetsAudioFormatasAudioFormat.MP3SpeedStagenoCompression()SetsAudioFormatwith no compression, asAudioFormat.FLAC
-
-
-
Method Detail
-
audio
public SpeedStage audio(bg.codexio.ai.openai.api.payload.voice.AudioFormat format)
SetsAudioFormat- Returns:
SpeedStageto configure the produced speed
-
mp3
public SpeedStage mp3()
SetsAudioFormatasAudioFormat.MP3- Returns:
SpeedStageto configure the produced speed
-
forStreaming
public SpeedStage forStreaming()
SetsAudioFormatoptimized for streaming, asAudioFormat.OPUS- Returns:
SpeedStageto configure the produced speed
-
forLowerRates
public SpeedStage forLowerRates()
SetsAudioFormatoptimized for lower rates, asAudioFormat.AAC- Returns:
SpeedStageto configure the produced speed
-
noCompression
public SpeedStage noCompression()
SetsAudioFormatwith no compression, asAudioFormat.FLAC- Returns:
SpeedStageto configure the produced speed
-
-