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

import typing

import pydantic

from ...core.pydantic_utilities import UniversalBaseModel
from .transcription_id import TranscriptionId


class BatchAudioSource(UniversalBaseModel):
    """
    A single audio file in a batch manifest.
    """

    audio_url: str = pydantic.Field()
    """
    Direct download URL to the audio file (MP3, WAV, etc.)
    """

    title: typing.Optional[str] = pydantic.Field(default=None)
    """
    Title for this transcription. Falls back to batch_title or auto-generated "Item 1", "Item 2", etc.
    """

    id: typing.Optional[TranscriptionId] = pydantic.Field(default=None)
    """
    Custom UUID for this transcription. Auto-generated if not provided.
    """

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