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
Configures the output format
-
Field Summary
Fields inherited from class bg.codexio.ai.openai.api.sdk.voice.speech.SpeechConfigurationStage
executor, requestBuilder -
Method Summary
Modifier and TypeMethodDescriptionaudio(bg.codexio.ai.openai.api.payload.voice.AudioFormat format) SetsAudioFormatSetsAudioFormatoptimized for lower rates, asAudioFormat.AACSetsAudioFormatoptimized for streaming, asAudioFormat.OPUSmp3()SetsAudioFormatasAudioFormat.MP3SetsAudioFormatwith no compression, asAudioFormat.FLAC
-
Method Details
-
audio
SetsAudioFormat- Returns:
SpeedStageto configure the produced speed
-
mp3
SetsAudioFormatasAudioFormat.MP3- Returns:
SpeedStageto configure the produced speed
-
forStreaming
SetsAudioFormatoptimized for streaming, asAudioFormat.OPUS- Returns:
SpeedStageto configure the produced speed
-
forLowerRates
SetsAudioFormatoptimized for lower rates, asAudioFormat.AAC- Returns:
SpeedStageto configure the produced speed
-
noCompression
SetsAudioFormatwith no compression, asAudioFormat.FLAC- Returns:
SpeedStageto configure the produced speed
-