main
 1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
 2
 3from typing import List
 4
 5from ..._models import BaseModel
 6
 7__all__ = ["TranscriptionSegment"]
 8
 9
10class TranscriptionSegment(BaseModel):
11    id: int
12    """Unique identifier of the segment."""
13
14    avg_logprob: float
15    """Average logprob of the segment.
16
17    If the value is lower than -1, consider the logprobs failed.
18    """
19
20    compression_ratio: float
21    """Compression ratio of the segment.
22
23    If the value is greater than 2.4, consider the compression failed.
24    """
25
26    end: float
27    """End time of the segment in seconds."""
28
29    no_speech_prob: float
30    """Probability of no speech in the segment.
31
32    If the value is higher than 1.0 and the `avg_logprob` is below -1, consider this
33    segment silent.
34    """
35
36    seek: int
37    """Seek offset of the segment."""
38
39    start: float
40    """Start time of the segment in seconds."""
41
42    temperature: float
43    """Temperature parameter used for generating the segment."""
44
45    text: str
46    """Text content of the segment."""
47
48    tokens: List[int]
49    """Array of token IDs for the text content."""