main
1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
3from typing import List, Optional
4from typing_extensions import Literal
5
6from ..._models import BaseModel
7from .transcription_word import TranscriptionWord
8from .transcription_segment import TranscriptionSegment
9
10__all__ = ["TranscriptionVerbose", "Usage"]
11
12
13class Usage(BaseModel):
14 seconds: float
15 """Duration of the input audio in seconds."""
16
17 type: Literal["duration"]
18 """The type of the usage object. Always `duration` for this variant."""
19
20
21class TranscriptionVerbose(BaseModel):
22 duration: float
23 """The duration of the input audio."""
24
25 language: str
26 """The language of the input audio."""
27
28 text: str
29 """The transcribed text."""
30
31 segments: Optional[List[TranscriptionSegment]] = None
32 """Segments of the transcribed text and their corresponding details."""
33
34 usage: Optional[Usage] = None
35 """Usage statistics for models billed by audio input duration."""
36
37 words: Optional[List[TranscriptionWord]] = None
38 """Extracted words and their corresponding timestamps."""