Class AIModelStage

java.lang.Object
bg.codexio.ai.openai.api.sdk.voice.speech.SpeechConfigurationStage
bg.codexio.ai.openai.api.sdk.voice.speech.AIModelStage
All Implemented Interfaces:
IntermediateStage

public class AIModelStage extends SpeechConfigurationStage implements IntermediateStage
A stage to choose a model supported by /v1/audio/speech model endpoint compatibility .
  • Method Details

    • poweredBy

      public VoiceStage poweredBy(bg.codexio.ai.openai.api.models.ModelType modelType)
      Parameters:
      modelType - ModelType usually implemented by
      • TTS:
        • TTS1Model
        • TTS1HDModel
      Supplying other models such as DallE30 may result into an error, when the API responds.
      Returns:
      VoiceStage to configure the temperature.
    • hdPowered

      public VoiceStage hdPowered()
      Configures the AI Model to be TTS1HDModel
      Returns:
      VoiceStage to configure the temperature.
    • defaultModel

      public VoiceStage defaultModel()
      Configures the AI Model to be TTS1Model
      Returns:
      VoiceStage to configure the temperature.