"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .sttusage import STTUsage, STTUsageTypedDict
from openrouter.types import BaseModel
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class STTResponseTypedDict(TypedDict):
    r"""STT response containing transcribed text and optional usage statistics"""

    text: str
    r"""The transcribed text"""
    usage: NotRequired[STTUsageTypedDict]
    r"""Aggregated usage statistics for the request"""


class STTResponse(BaseModel):
    r"""STT response containing transcribed text and optional usage statistics"""

    text: str
    r"""The transcribed text"""

    usage: Optional[STTUsage] = None
    r"""Aggregated usage statistics for the request"""
