Use function-related classes.
Conversation
Conversation
class is a core component of function execution, and is used for managing information during the conversation runtime.
Conversation
class, including attributes and methods, visit the conv
object page. VoiceWeighting
VoiceWeighting
class allows you to assign specific weightings to voices, adjusting their prominence in a given context.
ElevenLabsVoice
ElevenLabsVoice
class configures voice settings for ElevenLabs TTS system, allowing control over stability and similarity to the reference voice.
provider_voice_id
: Specifies the ElevenLabs voice to use. Specify using the ElevenLabs ID.stability
: Controls the consistency of tone and delivery (0.0 to 1.0).similarity_boost
: Controls how closely the generated voice matches the original (0.0 to 1.0).PlayHTVoice
PlayHTVoice
class configures voice settings for PlayHT TTS system, allowing selection of a specific voice ID and style.
provider_voice_id
: Specifies the PlayHT voice to use.style
: Defines the speaking style or tone.RimeVoice
RimeVoice
class configures voice settings for Rime TTS system, allowing selection of a specific provider voice ID.
provider_voice_id
: This mustb be an S3 path to a manifest file that contains the voice configuration.speed_alpha
: Controls the speech rate multiplier. 1.0 is normal speed.CartesiaVoice
CartesiaVoice
class configures voice settings for Cartesia TTS system.
provider_voice_id
: Specifies the Cartesia voice to use.speed
: Controls the speed of speech.language
: Sets the language code for synthesis (e.g., “en” for English).emotion
: Allows setting the emotional tone of the speech.CustomVoice
CustomVoice
class is used for defining voice configurations that use a custom TTS provider. This allows you to override the default system voice with a provider-supported voice.
provider
: Specifies the custom TTS provider.id
: Specifies the voice ID within the custom provider.