Dataclass for configuring an OpenAI-compatible TTS client.
# Source: https://github.com/huggingface/speech-to-speech | 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.
from dataclasses import dataclass, field
from typing import Optional
@dataclass
class OpenAICompatibleTTSHandlerArguments:
"""Connection and audio settings for an OpenAI-compatible TTS server."""
openai_tts_base_url: str = field(
default="http://localhost:8091/v1",
metadata={"help": "Base URL of the OpenAI-compatible server, including /v1."},
)
openai_tts_api_key: Optional[str] = field(
default=None,
metadata={"help": "Optional bearer token. If unset, OPENAI_API_KEY is used when available."},
)
openai_tts_model: str = f
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key