RealtimeTtsOptions

data class RealtimeTtsOptions(val modelId: String? = null, val languageCode: String? = null, val outputFormat: OutputFormat = OutputFormat.Mp3_44100_128, val voiceSettings: VoiceSettings? = null, val generationConfig: RealtimeTtsGenerationConfig? = null, val enableLogging: Boolean = true, val syncAlignment: Boolean = false, val enableSsmlParsing: Boolean = false, val timeouts: RealtimeTtsTimeouts = RealtimeTtsTimeouts(), val keepAlive: RealtimeTtsKeepAlive = RealtimeTtsKeepAlive(), val reconnectPolicy: RealtimeTtsReconnectPolicy = RealtimeTtsReconnectPolicy.Never)(source)

Configuration applied when opening a realtime text-to-speech connection.

Constructors

Link copied to clipboard
constructor(modelId: String? = null, languageCode: String? = null, outputFormat: OutputFormat = OutputFormat.Mp3_44100_128, voiceSettings: VoiceSettings? = null, generationConfig: RealtimeTtsGenerationConfig? = null, enableLogging: Boolean = true, syncAlignment: Boolean = false, enableSsmlParsing: Boolean = false, timeouts: RealtimeTtsTimeouts = RealtimeTtsTimeouts(), keepAlive: RealtimeTtsKeepAlive = RealtimeTtsKeepAlive(), reconnectPolicy: RealtimeTtsReconnectPolicy = RealtimeTtsReconnectPolicy.Never)

Properties

Link copied to clipboard

Whether request logging is enabled on ElevenLabs.

Link copied to clipboard

Whether the service should parse SSML tags in submitted text.

Link copied to clipboard

Optional server-side text chunking configuration.

Link copied to clipboard

Keepalive behavior for otherwise idle connections.

Link copied to clipboard

Language code, or null to let the selected model infer it.

Link copied to clipboard

Model identifier, or null to use the service default.

Link copied to clipboard

Encoding and sample rate of emitted audio.

Link copied to clipboard

Reconnection behavior after a transient connection failure.

Link copied to clipboard

Whether audio events include character alignment information.

Link copied to clipboard

Client and server timeout configuration.

Link copied to clipboard

Optional voice tuning parameters.