o
    i	                     @   s@   d Z ddlmZ ddlmZ eeZG dd deZdgZ	dS )z
Processor class for CLVP
   )ProcessorMixin)loggingc                       s4   e Zd ZdZdZdZ fddZ fddZ  ZS )ClvpProcessoras  
    Constructs a CLVP processor which wraps a CLVP Feature Extractor and a CLVP Tokenizer into a single processor.

    [`ClvpProcessor`] offers all the functionalities of [`ClvpFeatureExtractor`] and [`ClvpTokenizer`]. See the
    [`~ClvpProcessor.__call__`], [`~ClvpProcessor.decode`] and [`~ClvpProcessor.batch_decode`] for more information.

    Args:
        feature_extractor (`ClvpFeatureExtractor`):
            An instance of [`ClvpFeatureExtractor`]. The feature extractor is a required input.
        tokenizer (`ClvpTokenizer`):
            An instance of [`ClvpTokenizer`]. The tokenizer is a required input.
    ClvpFeatureExtractorClvpTokenizerc                    s   t  || d S )N)super__init__)selffeature_extractor	tokenizer	__class__ e/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/transformers/models/clvp/processing_clvp.pyr   ,   s   zClvpProcessor.__init__c                    s8   | dd}|durtd ||d< t j|i |S )z
        Forwards the `audio` and `sampling_rate` arguments to [`~ClvpFeatureExtractor.__call__`] and the `text`
        argument to [`~ClvpTokenizer.__call__`]. Please refer to the docstring of the above two methods for more
        information.
        
raw_speechNzbUsing `raw_speech` keyword argument is deprecated when calling ClvpProcessor, instead use `audio`.audio)poploggerwarningr   __call__)r	   argskwargsr   r   r   r   r   /   s   zClvpProcessor.__call__)	__name__
__module____qualname____doc__feature_extractor_classtokenizer_classr   r   __classcell__r   r   r   r   r      s    r   N)
r   processing_utilsr   utilsr   
get_loggerr   r   r   __all__r   r   r   r   <module>   s   

#