o
    lWi                     @   sz   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 e jd	ZG d
d dZG dd dZdS )    N   )core)AsyncClientWrapperSyncClientWrapper)RequestOptions)AddVoiceIvcResponseModel   )AsyncRawIvcClientRawIvcClient.c                   @   ~   e Zd ZdefddZedefddZeeeddd	e	d
e
jej de
je de
je	 de
je	 de
je defddZdS )	IvcClientclient_wrapperc                C      t |d| _d S N)r   )r
   _raw_clientselfr    r   `/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/voices/ivc/client.py__init__      zIvcClient.__init__returnc                 C      | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawIvcClient
        r   r   r   r   r   with_raw_response      	zIvcClient.with_raw_responseNremove_background_noisedescriptionlabelsrequest_optionsnamefilesr   r   r    r!   c                C   s   | j j||||||d}|jS )a  
        Create a voice clone and add it to your Voices

        Parameters
        ----------
        name : str
            The name that identifies this voice. This will be displayed in the dropdown of the website.

        files : typing.List[core.File]
            See core.File for more documentation

        remove_background_noise : typing.Optional[bool]
            If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse.

        description : typing.Optional[str]
            A description of the voice.

        labels : typing.Optional[str]
            Serialized labels dictionary for the voice.

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

        Returns
        -------
        AddVoiceIvcResponseModel
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.voices.ivc.create(
            name="name",
        )
        r"   r#   r   r   r    r!   r   createdatar   r"   r#   r   r   r    r!   	_responser   r   r   r&      s   1zIvcClient.create)__name__
__module____qualname__r   r   propertyr
   r   OMITstrtypingListr   FileOptionalboolr   r   r&   r   r   r   r   r      .    
	r   c                   @   r   )AsyncIvcClientr   c                C   r   r   )r	   r   r   r   r   r   r   [   r   zAsyncIvcClient.__init__r   c                 C   r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawIvcClient
        r   r   r   r   r   r   ^   r   z AsyncIvcClient.with_raw_responseNr   r"   r#   r   r   r    r!   c                   s&   | j j||||||dI dH }|jS )a  
        Create a voice clone and add it to your Voices

        Parameters
        ----------
        name : str
            The name that identifies this voice. This will be displayed in the dropdown of the website.

        files : typing.List[core.File]
            See core.File for more documentation

        remove_background_noise : typing.Optional[bool]
            If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse.

        description : typing.Optional[str]
            A description of the voice.

        labels : typing.Optional[str]
            Serialized labels dictionary for the voice.

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

        Returns
        -------
        AddVoiceIvcResponseModel
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.voices.ivc.create(
                name="name",
            )


        asyncio.run(main())
        r$   Nr%   r(   r   r   r   r&   i   s   9zAsyncIvcClient.create)r*   r+   r,   r   r   r-   r	   r   r.   r/   r0   r1   r   r2   r3   r4   r   r   r&   r   r   r   r   r6   Z   r5   r6   )r0    r   core.client_wrapperr   r   core.request_optionsr   "types.add_voice_ivc_response_modelr   
raw_clientr	   r
   castAnyr.   r   r6   r   r   r   r   <module>   s   K