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
  • Method Details

    • audio

      public SpeedStage audio(bg.codexio.ai.openai.api.payload.voice.AudioFormat format)
      Sets AudioFormat
      Returns:
      SpeedStage to configure the produced speed
    • mp3

      public SpeedStage mp3()
      Sets AudioFormat as AudioFormat.MP3
      Returns:
      SpeedStage to configure the produced speed
    • forStreaming

      public SpeedStage forStreaming()
      Sets AudioFormat optimized for streaming, as AudioFormat.OPUS
      Returns:
      SpeedStage to configure the produced speed
    • forLowerRates

      public SpeedStage forLowerRates()
      Sets AudioFormat optimized for lower rates, as AudioFormat.AAC
      Returns:
      SpeedStage to configure the produced speed
    • noCompression

      public SpeedStage noCompression()
      Sets AudioFormat with no compression, as AudioFormat.FLAC
      Returns:
      SpeedStage to configure the produced speed