
    b6i^                     l    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	      Z G d
 d      Zy)    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions   )AsyncRawTranscriptsClientRawTranscriptsClient)TranscriptsGetResponsec                       e Zd ZdefdZedefd       Zdddede	j                  e   defd	Zdddede	j                  e   de	j                  fd
Zy)TranscriptsClientclient_wrapperc                &    t        |      | _        y N)r   )r	   _raw_clientselfr   s     w/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/speech_to_text/transcripts/client.py__init__zTranscriptsClient.__init__   s    /~N    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawTranscriptsClient
        r   r   s    r   with_raw_responsez#TranscriptsClient.with_raw_response        r   Nrequest_optionstranscription_idr   c                T    | j                   j                  ||      }|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   	_responses       r   r!   zTranscriptsClient.get   s*    < $$(()9?([	~~r   c                T    | j                   j                  ||      }|j                  S )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#   s       r   r'   zTranscriptsClient.delete;   s*    8 $$++,<o+^	~~r   )__name__
__module____qualname__r   r   propertyr	   r   strtypingOptionalr   r
   r!   Anyr'    r   r   r   r      s    O*; O  #7     \` #9?9X	B cg s P^@_ kqkuku r   r   c                       e Zd ZdefdZedefd       Zdddede	j                  e   defd	Zdddede	j                  e   de	j                  fd
Zy)AsyncTranscriptsClientr   c                &    t        |      | _        y r   )r   r   r   s     r   r   zAsyncTranscriptsClient.__init__\   s    4NSr   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawTranscriptsClient
        r   r   s    r   r   z(AsyncTranscriptsClient.with_raw_response_   r   r   Nr   r   r   c                p   K   | j                   j                  ||       d{   }|j                  S 7 w)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#   s       r   r!   zAsyncTranscriptsClient.getj   s9     L **../?Q`.aa	~~ b   !646c                p   K   | j                   j                  ||       d{   }|j                  S 7 w)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#   s       r   r'   zAsyncTranscriptsClient.delete   s9     L **112BTc1dd	~~ er6   )r(   r)   r*   r   r   r+   r   r   r,   r-   r.   r   r
   r!   r/   r'   r0   r   r   r2   r2   [   s    T*< T  #<     \`' #'9?9X'	'T \`' #'9?9X'	'r   r2   )r-   core.client_wrapperr   r   core.request_optionsr   
raw_clientr   r	   types.transcripts_get_responser
   r   r2   r0   r   r   <module>r<      s/     H 2 G BM M`_ _r   