
    fTh2                     0    S r SSKJr   " S S\5      rS/rg)z
Processor class for CLVP
   )ProcessorMixinc                   N   ^  \ rS rSrSrSrSr/ SQrU 4S jrS r	S r
S	 rS
rU =r$ )ClvpProcessor   aO  
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ClvpTokenizer)	input_idsinput_featuresattention_maskc                 $   > [         TU ]  X5        g )N)super__init__)selffeature_extractor	tokenizer	__class__s      `/var/www/auris/envauris/lib/python3.13/site-packages/transformers/models/clvp/processing_clvp.pyr   ClvpProcessor.__init__-   s    *6    c                 $   UR                  SS5      nUR                  SS5      nUR                  SS5      nUc  Uc  [        S5      eUb  U R                  " U4SU0UD6nUb  U R                  " U40 UD6nUc  W$ Uc  W$ WS   WS'   US   US'   U$ )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_speechNsampling_ratetextzFYou need to specify either an `raw_speech` or `text` input to process.r	   r   )pop
ValueErrorr   r   )r   argskwargsr   r   r   inputs	encodingss           r   __call__ClvpProcessor.__call__0   s     ZZd3


?D9zz&$'$,eff!++J^m^W]^Ft6v6I<M"+K"8F;'01A'BF#$Mr   c                 :    U R                   R                  " U0 UD6$ )z
This method forwards all its arguments to ClvpTokenizer's [`~PreTrainedTokenizer.batch_decode`]. Please
refer to the docstring of this method for more information.
)r   batch_decoder   r   r   s      r   r#   ClvpProcessor.batch_decodeM   s    
 ~~**D;F;;r   c                 :    U R                   R                  " U0 UD6$ )z
This method forwards all its arguments to ClvpTokenizer's [`~PreTrainedTokenizer.decode`]. Please refer to
the docstring of this method for more information.
)r   decoder$   s      r   r'   ClvpProcessor.decodeU   s    
 ~~$$d5f55r    )__name__
__module____qualname____firstlineno____doc__feature_extractor_classtokenizer_classmodel_input_namesr   r    r#   r'   __static_attributes____classcell__)r   s   @r   r   r      s6     5%O7:<6 6r   r   N)r.   processing_utilsr   r   __all__r)   r   r   <module>r6      s(     /C6N C6L 
r   