
    b6iI                         d dl Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	 ddl
mZmZ  e j                  e j                  d	      Z G d
 d      Z G d d      Zy)    N   )core)AsyncClientWrapperSyncClientWrapper)RequestOptions)ForcedAlignmentResponseModel   )AsyncRawForcedAlignmentClientRawForcedAlignmentClient.c                       e Zd ZdefdZedefd       Zeddde	j                  ded	ej                  e   d
ej                  e   def
dZy)ForcedAlignmentClientclient_wrapperc                &    t        |      | _        y N)r   )r   _raw_clientselfr   s     m/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/forced_alignment/client.py__init__zForcedAlignmentClient.__init__   s    3>R    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawForcedAlignmentClient
        r   r   s    r   with_raw_responsez'ForcedAlignmentClient.with_raw_response        r   Nenabled_spooled_filerequest_optionsfiletextr   r   c                X    | j                   j                  ||||      }|j                  S )aV  
        Force align an audio file to text. Use this endpoint to get the timing information for each character and word in an audio file based on a provided text transcript.

        Parameters
        ----------
        file : core.File
            See core.File for more documentation

        text : str
            The text to align with the audio. The input text can be in any format, however diarization is not supported at this time.

        enabled_spooled_file : typing.Optional[bool]
            If true, the file will be streamed to the server and processed in chunks. This is useful for large files that cannot be loaded into memory. The default is false.

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

        Returns
        -------
        ForcedAlignmentResponseModel
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.forced_alignment.create(
            text="text",
        )
        r    r!   r   r   r   createdatar   r    r!   r   r   	_responses         r   r%   zForcedAlignmentClient.create   s7    R $$++D7K]l , 
	 ~~r   )__name__
__module____qualname__r   r   propertyr   r   OMITr   FilestrtypingOptionalboolr   r   r%    r   r   r   r      s    S*; S  #;     7;;?, ii, 	,
 %ood3,  8, 
&,r   r   c                       e Zd ZdefdZedefd       Zeddde	j                  ded	ej                  e   d
ej                  e   def
dZy)AsyncForcedAlignmentClientr   c                &    t        |      | _        y r   )r
   r   r   s     r   r   z#AsyncForcedAlignmentClient.__init__N   s    8Wr   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawForcedAlignmentClient
        r   r   s    r   r   z,AsyncForcedAlignmentClient.with_raw_responseQ   r   r   Nr   r    r!   r   r   c                t   K   | j                   j                  ||||       d{   }|j                  S 7 w)a  
        Force align an audio file to text. Use this endpoint to get the timing information for each character and word in an audio file based on a provided text transcript.

        Parameters
        ----------
        file : core.File
            See core.File for more documentation

        text : str
            The text to align with the audio. The input text can be in any format, however diarization is not supported at this time.

        enabled_spooled_file : typing.Optional[bool]
            If true, the file will be streamed to the server and processed in chunks. This is useful for large files that cannot be loaded into memory. The default is false.

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

        Returns
        -------
        ForcedAlignmentResponseModel
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.forced_alignment.create(
                text="text",
            )


        asyncio.run(main())
        r#   Nr$   r'   s         r   r%   z!AsyncForcedAlignmentClient.create\   sE     b **11D7K]l 2 
 
	 ~~
s   #868)r)   r*   r+   r   r   r,   r
   r   r-   r   r.   r/   r0   r1   r2   r   r   r%   r3   r   r   r5   r5   M   s    X*< X  #@     7;;?4 ii4 	4
 %ood34  84 
&4r   r5   )r0    r   core.client_wrapperr   r   core.request_optionsr   %types.forced_alignment_response_modelr   
raw_clientr
   r   castAnyr-   r   r5   r3   r   r   <module>r@      sH      G 1 P O v{{6::s#; ;|C Cr   