Cartesia TTS volume and emotion parameters not working

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

I’m trying to add volume and emotion parameters to my Cartesia TTS plugin as mentioned in the documentation, but I keep getting errors that these keys are not supported.

I’m using livekit-agents[cartesia]~=1.2.

Am I using an older package or is there another issue?

Not all configuration parameters work with all Cartesia models.

Emotions, speed, volume, and other parameters may only be available for specific models like Sonic 3 or a specific date version of Sonic 2, but not for Sonic (1).

This is a Cartesia limitation - they only allow certain parameters with specific models. Check which model you’re using and verify it supports the parameters you’re trying to set.