How to control the voice of your application.
SynthesizerConfig
class.
ElevenLabsSynthesizerConfig.from_telephone_output_device()
method is used to create a configuration object for the Eleven Labs synthesizer.
The method hardcodes some values like the sampling_rate
and audio_encoding
for compatibility with telephone output devices.
experimental_websocket=True
into the config and using the ElevenLabsWSSynthesizer
, like:
CartesiaSynthesizer
with the CartesiaSynthesizerConfig
to enable this feature.
CartesiaSynthesizerConfig.from_output_device()
method is used to create a configuration object for the Cartesia synthesizer.
The method takes a speaker_output
object as an argument, and extracts the sampling_rate
and audio_encoding
from the output device.
speed
and emotion
parameters in the CartesiaSynthesizerConfig
object to control the speed and emotions of the agent’s voice! See this page for more details.
AzureSynthesizerConfig.from_output_device()
method is used to create a configuration object for the Azure synthesizer.
The method takes a speaker_output
object as an argument, and extracts the sampling_rate
and audio_encoding
from the output device.