Class SpeakCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class SpeakCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
text
final SpeakCreateParams.Body.Builder text(String text)
Text to convert to speech
-
text
final SpeakCreateParams.Body.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
applyTextNormalization
final SpeakCreateParams.Body.Builder applyTextNormalization(Boolean applyTextNormalization)
Apply automatic text normalization
-
applyTextNormalization
final SpeakCreateParams.Body.Builder applyTextNormalization(JsonField<Boolean> applyTextNormalization)
Sets Builder.applyTextNormalization to an arbitrary JSON value.
You should usually call Builder.applyTextNormalization with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
enableLogging
final SpeakCreateParams.Body.Builder enableLogging(Boolean enableLogging)
Enable request logging
-
enableLogging
final SpeakCreateParams.Body.Builder enableLogging(JsonField<Boolean> enableLogging)
Sets Builder.enableLogging to an arbitrary JSON value.
You should usually call Builder.enableLogging with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
languageCode
final SpeakCreateParams.Body.Builder languageCode(String languageCode)
Language code for multilingual models
-
languageCode
final SpeakCreateParams.Body.Builder languageCode(JsonField<String> languageCode)
Sets Builder.languageCode to an arbitrary JSON value.
You should usually call Builder.languageCode with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
modelId
final SpeakCreateParams.Body.Builder modelId(SpeakCreateParams.ModelId modelId)
ElevenLabs model ID
-
modelId
final SpeakCreateParams.Body.Builder modelId(JsonField<SpeakCreateParams.ModelId> modelId)
Sets Builder.modelId to an arbitrary JSON value.
You should usually call Builder.modelId with a well-typed ModelId value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
nextText
final SpeakCreateParams.Body.Builder nextText(String nextText)
Next context for better pronunciation
-
nextText
final SpeakCreateParams.Body.Builder nextText(JsonField<String> nextText)
Sets Builder.nextText to an arbitrary JSON value.
You should usually call Builder.nextText with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
optimizeStreamingLatency
final SpeakCreateParams.Body.Builder optimizeStreamingLatency(Long optimizeStreamingLatency)
Optimize for streaming latency (0-4)
-
optimizeStreamingLatency
final SpeakCreateParams.Body.Builder optimizeStreamingLatency(JsonField<Long> optimizeStreamingLatency)
Sets Builder.optimizeStreamingLatency to an arbitrary JSON value.
You should usually call Builder.optimizeStreamingLatency with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputFormat
final SpeakCreateParams.Body.Builder outputFormat(SpeakCreateParams.OutputFormat outputFormat)
Audio output format
-
outputFormat
final SpeakCreateParams.Body.Builder outputFormat(JsonField<SpeakCreateParams.OutputFormat> outputFormat)
Sets Builder.outputFormat to an arbitrary JSON value.
You should usually call Builder.outputFormat with a well-typed OutputFormat value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
previousText
final SpeakCreateParams.Body.Builder previousText(String previousText)
Previous context for better pronunciation
-
previousText
final SpeakCreateParams.Body.Builder previousText(JsonField<String> previousText)
Sets Builder.previousText to an arbitrary JSON value.
You should usually call Builder.previousText with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
seed
final SpeakCreateParams.Body.Builder seed(Long seed)
Seed for reproducible generation
-
seed
final SpeakCreateParams.Body.Builder seed(JsonField<Long> seed)
Sets Builder.seed to an arbitrary JSON value.
You should usually call Builder.seed with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
voiceId
final SpeakCreateParams.Body.Builder voiceId(String voiceId)
ElevenLabs voice ID (defaults to Rachel - professional, clear)
-
voiceId
final SpeakCreateParams.Body.Builder voiceId(JsonField<String> voiceId)
Sets Builder.voiceId to an arbitrary JSON value.
You should usually call Builder.voiceId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
voiceSettings
final SpeakCreateParams.Body.Builder voiceSettings(SpeakCreateParams.VoiceSettings voiceSettings)
Voice customization settings
-
voiceSettings
final SpeakCreateParams.Body.Builder voiceSettings(JsonField<SpeakCreateParams.VoiceSettings> voiceSettings)
Sets Builder.voiceSettings to an arbitrary JSON value.
You should usually call Builder.voiceSettings with a well-typed VoiceSettings value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SpeakCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SpeakCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SpeakCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SpeakCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SpeakCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SpeakCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text()
-
-
-
-