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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel
from .audio_key_moment import AudioKeyMoment
from .audio_segment import AudioSegment


class AudioAnalysisResult(UncheckedBaseModel):
    title: str
    description: str
    content_type: typing.Optional[str] = None
    overall_pacing: typing.Optional[str] = None
    segments: typing.Optional[typing.List[AudioSegment]] = None
    key_moments: typing.Optional[typing.List[AudioKeyMoment]] = None

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
