Pydantic model providing default Faster Whisper STT options from settings.
# Source: https://github.com/neural-maze/realtime-phone-agents-course | License: MIT | Copyright 2025 The Neural Maze
# Provided via justclaw.it.com; keep this notice with the code.
from pydantic import BaseModel, Field
from realtime_phone_agents.config import settings
class FasterWhisperSTTOptions(BaseModel):
"""Faster Whisper STT options with defaults from Pydantic settings."""
api_url: str = Field(
default_factory=lambda: settings.faster_whisper.api_url,
description="Orpheus TTS API URL",
)
model: str = Field(
default_factory=lambda: settings.faster_whisper.model,
description="Faster Whisper Model",
)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key