TTSClientConfigΒΆ
class TTSClientConfig ( BaseClientConfig )
Provider-agnostic complete-text HTTP TTS configuration.
Polymorphic Type:
type: ttsAll
BaseClientConfigtypes:
openai_chat_completions: OpenAIChatCompletionsClientConfig
tts: TTSClientConfig
streaming_tts: StreamingTTSClientConfig
stt: STTClientConfig
openai_completions: OpenAICompletionsClientConfig
openai_router: OpenAIRouterClientConfig
Fields:
api_baseOptional [ str ] =NoneAPI base URL. Defaults to OPENAI_API_BASE env var.
api_keyOptional [ str ] =NoneAPI key. Defaults to OPENAI_API_KEY env var.
modelstr =""The TTS model ID.
address_append_valuestr ="chat/completions"The address append value for the LLM API.
request_timeoutint =300The timeout for each request to the LLM API (in seconds).
additional_sampling_paramsstr ="{}"Additional sampling params to send with each request to the LLM API.
providerstr =""HTTP TTS provider. Supported: openai, elevenlabs, deepgram_flux, mistral.
voice_idstr =""Voice identifier when required by the provider.
sample_rateint =24000Audio sample rate in Hz.
chunk_sizeint =1024Read size in bytes for HTTP audio response streaming.
raw_pcmbool =FalseRequest raw PCM from providers that support selectable output formats.
api_key_envOptional [ str ] =NoneOptional provider API-key environment variable override.
stabilityfloat =0.5ElevenLabs voice stability.
similarity_boostfloat =0.8ElevenLabs similarity boost.
speedfloat =1.0Provider speaking-rate multiplier.
apply_text_normalizationstr ="off"ElevenLabs text normalization mode: auto | on | off.
mip_opt_outbool =FalseOpt out of the Deepgram Model Improvement Program.