CartesiaVoice

interface CartesiaVoice : CartesiaVoiceProperties(source)

Properties

Link copied to clipboard
abstract var customLanguage: String

This enables specifying a language that doesn't already exist as an CartesiaVoiceLanguageType enum.

Link copied to clipboard
abstract var customModel: String

This enables specifying a model that doesn't already exist as an CartesiaVoiceModelType enum.

Link copied to clipboard
abstract var fillerInjectionEnabled: Boolean?

This determines whether fillers are injected into the model output before inputting it into the voice provider.
Default `false` because you can achieve better results with prompting the model.

Link copied to clipboard

This is the language that will be used. This is optional and will default to the correct language for the voiceId.

Link copied to clipboard

This is the model that will be used. This is optional and will default to the correct model for the voiceId.

Link copied to clipboard
abstract var voiceId: String

This is the provider-specific ID that will be used.

Functions

Link copied to clipboard
abstract fun chunkPlan(block: ChunkPlan.() -> Unit)

This is the chunk plan for controlling how the model output is split into chunks before being sent to the voice provider for generation.