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 .
-
-
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 VoiceStagedefaultModel()Configures the AI Model to beTTS1ModelVoiceStagehdPowered()Configures the AI Model to beTTS1HDModelVoiceStagepoweredBy(bg.codexio.ai.openai.api.models.ModelType modelType)
-
-
-
Method Detail
-
poweredBy
public VoiceStage poweredBy(bg.codexio.ai.openai.api.models.ModelType modelType)
- Parameters:
modelType-ModelTypeusually implemented by- TTS:
TTS1ModelTTS1HDModel
DallE30may result into an error, when the API responds.- TTS:
- Returns:
VoiceStageto configure the temperature.
-
hdPowered
public VoiceStage hdPowered()
Configures the AI Model to beTTS1HDModel- Returns:
VoiceStageto configure the temperature.
-
defaultModel
public VoiceStage defaultModel()
Configures the AI Model to beTTS1Model- Returns:
VoiceStageto configure the temperature.
-
-