Class SpeakCreateParams
-
- All Implemented Interfaces:
-
dev.case.api.core.Params
public final class SpeakCreateParams implements Params
Convert text to natural-sounding audio using ElevenLabs voices. Ideal for creating audio summaries of legal documents, client presentations, or accessibility features. Supports multiple languages and voice customization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpeakCreateParams.BuilderA builder for SpeakCreateParams.
public final classSpeakCreateParams.Bodypublic final classSpeakCreateParams.ModelIdElevenLabs model ID
public final classSpeakCreateParams.OutputFormatAudio output format
public final classSpeakCreateParams.VoiceSettingsVoice customization settings
-
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>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final SpeakCreateParams.BuildertoBuilder()final SpeakCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static SpeakCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of SpeakCreateParams. -
-
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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final SpeakCreateParams.Builder toBuilder()
-
_body
final SpeakCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static SpeakCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of SpeakCreateParams.
The following fields are required:
.text()
-
-
-
-