o
    lWiW                     @   sl   d dl Z ddlmZmZ ddlmZ ddlmZmZ ddl	m
Z
 ddlmZ G d	d
 d
ZG dd dZdS )    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions   )AsyncRawTranscriptClientRawTranscriptClient).TranscriptGetTranscriptForDubRequestFormatType)%TranscriptGetTranscriptForDubResponsec                   @   ^   e Zd ZdefddZedefddZdddd	ed
ede	j
e de	j
e def
ddZdS )TranscriptClientclient_wrapperc                C      t |d| _d S N)r   )r   _raw_clientselfr    r   h/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/dubbing/transcript/client.py__init__      zTranscriptClient.__init__returnc                 C      | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawTranscriptClient
        r   r   r   r   r   with_raw_response      	z"TranscriptClient.with_raw_responseNformat_typerequest_options
dubbing_idlanguage_coder   r   c                C   s   | j j||||d}|jS )a   
        Returns transcript for the dub as an SRT or WEBVTT file.

        Parameters
        ----------
        dubbing_id : str
            ID of the dubbing project.

        language_code : str
            ID of the language.

        format_type : typing.Optional[TranscriptGetTranscriptForDubRequestFormatType]
            Format to return transcript in. For subtitles use either 'srt' or 'webvtt', and for a full transcript use 'json'. The 'json' format is not yet supported for Dubbing Studio.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        TranscriptGetTranscriptForDubResponse
            Successful Response

        Examples
        --------
        from elevenlabs import ElevenLabs

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.dubbing.transcript.get_transcript_for_dub(
            dubbing_id="dubbing_id",
            language_code="language_code",
            format_type="srt",
        )
        r   r   get_transcript_for_dubdatar   r    r!   r   r   	_responser   r   r   r#      s   +z'TranscriptClient.get_transcript_for_dub)__name__
__module____qualname__r   r   propertyr   r   strtypingOptionalr	   r   r
   r#   r   r   r   r   r      "    r   c                   @   r   )AsyncTranscriptClientr   c                C   r   r   )r   r   r   r   r   r   r   M   r   zAsyncTranscriptClient.__init__r   c                 C   r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawTranscriptClient
        r   r   r   r   r   r   P   r   z'AsyncTranscriptClient.with_raw_responseNr   r    r!   r   r   c                   s"   | j j||||dI dH }|jS )a  
        Returns transcript for the dub as an SRT or WEBVTT file.

        Parameters
        ----------
        dubbing_id : str
            ID of the dubbing project.

        language_code : str
            ID of the language.

        format_type : typing.Optional[TranscriptGetTranscriptForDubRequestFormatType]
            Format to return transcript in. For subtitles use either 'srt' or 'webvtt', and for a full transcript use 'json'. The 'json' format is not yet supported for Dubbing Studio.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        TranscriptGetTranscriptForDubResponse
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.dubbing.transcript.get_transcript_for_dub(
                dubbing_id="dubbing_id",
                language_code="language_code",
                format_type="srt",
            )


        asyncio.run(main())
        r   Nr"   r%   r   r   r   r#   [   s
   3z,AsyncTranscriptClient.get_transcript_for_dub)r'   r(   r)   r   r   r*   r   r   r+   r,   r-   r	   r   r
   r#   r   r   r   r   r/   L   r.   r/   )r,   core.client_wrapperr   r   core.request_optionsr   
raw_clientr   r   ;types.transcript_get_transcript_for_dub_request_format_typer	   0types.transcript_get_transcript_for_dub_responser
   r   r/   r   r   r   r   <module>   s   @