from pydantic import BaseModel from typing import Optional class TranscriptionRequest(BaseModel): output_language: str = "en" class TranscriptionResponse(BaseModel): text: str language: Optional[str] segments: Optional[list]