numerous-whale-53652
09/02/2025, 5:39 PMcool-processor-75520
09/02/2025, 6:58 PM@dataclass
class VoiceSettings:
stability: float # [0.0 - 1.0]
similarity_boost: float # [0.0 - 1.0]
style: NotGivenOr[float] = NOT_GIVEN # [0.0 - 1.0]
speed: NotGivenOr[float] = NOT_GIVEN # [0.8 - 1.2]
use_speaker_boost: NotGivenOr[bool] = NOT_GIVEN
For azure- example
elevenlabs.TTS(
model=config.model,
voice_id=config.voice_id,
voice_settings=elevenlabs.VoiceSettings(
stability=0.5, # Required: [0.0 - 1.0] - Controls voice consistency
similarity_boost=0.5, # Required: [0.0 - 1.0] - Controls voice similarity to original
speed=voice_speed # Optional: [0.8 - 1.2] - Controls speech speed
)
)