o
    lWi^                     @   s`   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
 G dd	 d	ZG d
d dZdS )    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions   )AsyncRawTranscriptsClientRawTranscriptsClient)TranscriptsGetResponsec                   @   r   e Zd ZdefddZedefddZddd	ed
e	j
e defddZddd	ed
e	j
e de	jfddZdS )TranscriptsClientclient_wrapperc                C      t |d| _d S N)r   )r   _raw_clientselfr    r   p/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/speech_to_text/transcripts/client.py__init__      zTranscriptsClient.__init__returnc                 C      | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawTranscriptsClient
        r   r   r   r   r   with_raw_response      	z#TranscriptsClient.with_raw_responseNrequest_optionstranscription_idr   c                C      | j j||d}|jS )a  
        Retrieve a previously generated transcript by its ID.

        Parameters
        ----------
        transcription_id : str
            The unique ID of the transcript to retrieve

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

        Returns
        -------
        TranscriptsGetResponse
            The transcript data

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.speech_to_text.transcripts.get(
            transcription_id="transcription_id",
        )
        r   r   getdatar   r   r   	_responser   r   r   r!      s   zTranscriptsClient.getc                C   r   )a  
        Delete a previously generated transcript by its ID.

        Parameters
        ----------
        transcription_id : str
            The unique ID of the transcript to delete

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

        Returns
        -------
        typing.Any
            Delete completed successfully.

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.speech_to_text.transcripts.delete(
            transcription_id="transcription_id",
        )
        r   r   deleter"   r#   r   r   r   r&   ;   s   zTranscriptsClient.delete)__name__
__module____qualname__r   r   propertyr   r   strtypingOptionalr   r	   r!   Anyr&   r   r   r   r   r      s    
(!r   c                   @   r
   )AsyncTranscriptsClientr   c                C   r   r   )r   r   r   r   r   r   r   \   r   zAsyncTranscriptsClient.__init__r   c                 C   r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawTranscriptsClient
        r   r   r   r   r   r   _   r   z(AsyncTranscriptsClient.with_raw_responseNr   r   r   c                      | j j||dI dH }|jS )a  
        Retrieve a previously generated transcript by its ID.

        Parameters
        ----------
        transcription_id : str
            The unique ID of the transcript to retrieve

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

        Returns
        -------
        TranscriptsGetResponse
            The transcript data

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.speech_to_text.transcripts.get(
                transcription_id="transcription_id",
            )


        asyncio.run(main())
        r   Nr    r#   r   r   r   r!   j      &zAsyncTranscriptsClient.getc                   r0   )a  
        Delete a previously generated transcript by its ID.

        Parameters
        ----------
        transcription_id : str
            The unique ID of the transcript to delete

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

        Returns
        -------
        typing.Any
            Delete completed successfully.

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.speech_to_text.transcripts.delete(
                transcription_id="transcription_id",
            )


        asyncio.run(main())
        r   Nr%   r#   r   r   r   r&      r1   zAsyncTranscriptsClient.delete)r'   r(   r)   r   r   r*   r   r   r+   r,   r-   r   r	   r!   r.   r&   r   r   r   r   r/   [   s(    
*r/   )r,   core.client_wrapperr   r   core.request_optionsr   
raw_clientr   r   types.transcripts_get_responser	   r   r/   r   r   r   r   <module>   s   P