# This file was auto-generated by Fern from our API Definition.

import typing_extensions
import typing_extensions
from .timestamps_model import TimestampsModelParams
from .diarized_transcript import DiarizedTranscriptParams


class SpeechToTextResponseParams(typing_extensions.TypedDict):
    request_id: typing_extensions.NotRequired[str]
    transcript: str
    """
    The transcribed text from the provided audio file.
    """

    timestamps: typing_extensions.NotRequired[TimestampsModelParams]
    """
    Contains timestamps for the transcribed text. This field is included only if with_timestamps is set to true
    """

    diarized_transcript: typing_extensions.NotRequired[DiarizedTranscriptParams]
    """
    Diarized transcript of the provided speech
    """

    language_code: typing_extensions.NotRequired[str]
    """
    This will return the BCP-47 code of language spoken in the input. If multiple languages are detected, this will return language code of most predominant spoken language. If no language is detected, this will be null
    """
