
    b6i                     x    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
      Z G d d      Zy)    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions   )AsyncRawTranscriptClientRawTranscriptClient).TranscriptGetTranscriptForDubRequestFormatType)%TranscriptGetTranscriptForDubResponsec                       e Zd ZdefdZedefd       Zddddeded	e	j                  e   d
e	j                  e   def
dZy)TranscriptClientclient_wrapperc                &    t        |      | _        y N)r   )r	   _raw_clientselfr   s     o/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/dubbing/transcript/client.py__init__zTranscriptClient.__init__   s    .nM    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawTranscriptClient
        r   r   s    r   with_raw_responsez"TranscriptClient.with_raw_response        r   Nformat_typerequest_options
dubbing_idlanguage_coder   r   c                X    | j                   j                  ||||      }|j                  S )aw  
        Returns transcript for the dub as an SRT or WEBVTT file.

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

        language_code : str
            ISO-693 language code to retrieve the transcript for. Use 'source' to fetch the transcript of the original media.

        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="source",
            format_type="srt",
        )
        r   r   get_transcript_for_dubdatar   r    r!   r   r   	_responses         r   r$   z'TranscriptClient.get_transcript_for_dub   s6    V $$;;;P_ < 
	 ~~r   )__name__
__module____qualname__r   r   propertyr	   r   strtypingOptionalr
   r   r   r$    r   r   r   r      s    N*; N  #6     X\;?.. .
 __%ST.  8. 
/.r   r   c                       e Zd ZdefdZedefd       Zddddeded	e	j                  e   d
e	j                  e   def
dZy)AsyncTranscriptClientr   c                &    t        |      | _        y r   )r   r   r   s     r   r   zAsyncTranscriptClient.__init__M   s    3>Rr   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawTranscriptClient
        r   r   s    r   r   z'AsyncTranscriptClient.with_raw_responseP   r   r   Nr   r    r!   r   r   c                t   K   | j                   j                  ||||       d{   }|j                  S 7 w)a  
        Returns transcript for the dub as an SRT or WEBVTT file.

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

        language_code : str
            ISO-693 language code to retrieve the transcript for. Use 'source' to fetch the transcript of the original media.

        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="source",
                format_type="srt",
            )


        asyncio.run(main())
        r   Nr#   r&   s         r   r$   z,AsyncTranscriptClient.get_transcript_for_dub[   sE     f **AA;P_ B 
 
	 ~~
s   #868)r(   r)   r*   r   r   r+   r   r   r,   r-   r.   r
   r   r   r$   r/   r   r   r1   r1   L   s    S*< S  #;     X\;?66 6
 __%ST6  86 
/6r   r1   )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   r1   r/   r   r   <module>r:      s0     H 2 E w c= =@E Er   