TTSConfig (voice/config.py)

DeepTutor · deeptutor/services/voice/config.py · python · Apache-2.0
voice, Voice / Speech

Dataclasses and utilities for resolved TTS/STT configuration, including timeout resolution.

# Source: https://github.com/HKUDS/DeepTutor | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Resolved runtime configuration for voice (TTS / STT) providers.

These dataclasses are the read-side adapter between the model catalog
(``services.tts`` / ``services.stt``) and the HTTP adapters. They mirror the
shape of :class:`ResolvedEmbeddingConfig` so a single OpenAI-compatible
adapter can cover OpenAI, Groq, SiliconFlow, OpenRouter, Azure OpenAI and
local vLLM/LM Studio by swapping ``base_url`` + ``api_key`` + ``model``.
"""

from __future__ import annotations

from dataclasses import dataclass, field

# Auth header styles understood by the OpenAI-compatible adapter.
AUTH_BEARER = 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key