Class SpeakCreateParams.Body
-
- All Implemented Interfaces:
public final class SpeakCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpeakCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Stringtext()Text to convert to speech final Optional<Boolean>applyTextNormalization()Apply automatic text normalization final Optional<Boolean>enableLogging()Enable request logging final Optional<String>languageCode()Language code for multilingual models final Optional<SpeakCreateParams.ModelId>modelId()ElevenLabs model ID final Optional<String>nextText()Next context for better pronunciation final Optional<Long>optimizeStreamingLatency()Optimize for streaming latency (0-4) final Optional<SpeakCreateParams.OutputFormat>outputFormat()Audio output format final Optional<String>previousText()Previous context for better pronunciation final Optional<Long>seed()Seed for reproducible generation final Optional<String>voiceId()ElevenLabs voice ID (defaults to Rachel - professional, clear) final Optional<SpeakCreateParams.VoiceSettings>voiceSettings()Voice customization settings final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<Boolean>_applyTextNormalization()Returns the raw JSON value of applyTextNormalization. final JsonField<Boolean>_enableLogging()Returns the raw JSON value of enableLogging. final JsonField<String>_languageCode()Returns the raw JSON value of languageCode. final JsonField<SpeakCreateParams.ModelId>_modelId()Returns the raw JSON value of modelId. final JsonField<String>_nextText()Returns the raw JSON value of nextText. final JsonField<Long>_optimizeStreamingLatency()Returns the raw JSON value of optimizeStreamingLatency. final JsonField<SpeakCreateParams.OutputFormat>_outputFormat()Returns the raw JSON value of outputFormat. final JsonField<String>_previousText()Returns the raw JSON value of previousText. final JsonField<Long>_seed()Returns the raw JSON value of seed. final JsonField<String>_voiceId()Returns the raw JSON value of voiceId. final JsonField<SpeakCreateParams.VoiceSettings>_voiceSettings()Returns the raw JSON value of voiceSettings. final Map<String, JsonValue>_additionalProperties()final SpeakCreateParams.Body.BuildertoBuilder()final SpeakCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SpeakCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
applyTextNormalization
final Optional<Boolean> applyTextNormalization()
Apply automatic text normalization
-
enableLogging
final Optional<Boolean> enableLogging()
Enable request logging
-
languageCode
final Optional<String> languageCode()
Language code for multilingual models
-
modelId
final Optional<SpeakCreateParams.ModelId> modelId()
ElevenLabs model ID
-
optimizeStreamingLatency
final Optional<Long> optimizeStreamingLatency()
Optimize for streaming latency (0-4)
-
outputFormat
final Optional<SpeakCreateParams.OutputFormat> outputFormat()
Audio output format
-
previousText
final Optional<String> previousText()
Previous context for better pronunciation
-
voiceId
final Optional<String> voiceId()
ElevenLabs voice ID (defaults to Rachel - professional, clear)
-
voiceSettings
final Optional<SpeakCreateParams.VoiceSettings> voiceSettings()
Voice customization settings
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_applyTextNormalization
final JsonField<Boolean> _applyTextNormalization()
Returns the raw JSON value of applyTextNormalization.
Unlike applyTextNormalization, this method doesn't throw if the JSON field has an unexpected type.
-
_enableLogging
final JsonField<Boolean> _enableLogging()
Returns the raw JSON value of enableLogging.
Unlike enableLogging, this method doesn't throw if the JSON field has an unexpected type.
-
_languageCode
final JsonField<String> _languageCode()
Returns the raw JSON value of languageCode.
Unlike languageCode, this method doesn't throw if the JSON field has an unexpected type.
-
_modelId
final JsonField<SpeakCreateParams.ModelId> _modelId()
Returns the raw JSON value of modelId.
Unlike modelId, this method doesn't throw if the JSON field has an unexpected type.
-
_nextText
final JsonField<String> _nextText()
Returns the raw JSON value of nextText.
Unlike nextText, this method doesn't throw if the JSON field has an unexpected type.
-
_optimizeStreamingLatency
final JsonField<Long> _optimizeStreamingLatency()
Returns the raw JSON value of optimizeStreamingLatency.
Unlike optimizeStreamingLatency, this method doesn't throw if the JSON field has an unexpected type.
-
_outputFormat
final JsonField<SpeakCreateParams.OutputFormat> _outputFormat()
Returns the raw JSON value of outputFormat.
Unlike outputFormat, this method doesn't throw if the JSON field has an unexpected type.
-
_previousText
final JsonField<String> _previousText()
Returns the raw JSON value of previousText.
Unlike previousText, this method doesn't throw if the JSON field has an unexpected type.
-
_seed
final JsonField<Long> _seed()
Returns the raw JSON value of seed.
Unlike seed, this method doesn't throw if the JSON field has an unexpected type.
-
_voiceId
final JsonField<String> _voiceId()
Returns the raw JSON value of voiceId.
Unlike voiceId, this method doesn't throw if the JSON field has an unexpected type.
-
_voiceSettings
final JsonField<SpeakCreateParams.VoiceSettings> _voiceSettings()
Returns the raw JSON value of voiceSettings.
Unlike voiceSettings, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SpeakCreateParams.Body.Builder toBuilder()
-
validate
final SpeakCreateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static SpeakCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.text()
-
-
-
-