
    bCiX                         S r SSKJrJr  SSKJr  SSKJrJrJ	r	  SSK
JrJr  SSKJr  SSKJr  \R"                  " \5      r " S	 S
\5      rS
/rg)z%
Audio/Text processor class for CLAP
    )OptionalUnion   )
AudioInput)ProcessingKwargsProcessorMixinUnpack)PreTokenizedInput	TextInput)logging)deprecate_kwargc                      ^  \ rS rSrSrSrSrU 4S jr\" SSSS	9   SS
\	\
\\\\   \\   4      S\	\   S\	\   S\\   4U 4S jjj5       rSrU =r$ )ClapProcessor   a  
Constructs a CLAP processor which wraps a CLAP feature extractor and a RoBerta tokenizer into a single processor.

[`ClapProcessor`] offers all the functionalities of [`ClapFeatureExtractor`] and [`RobertaTokenizerFast`]. See the
[`~ClapProcessor.__call__`] and [`~ClapProcessor.decode`] for more information.

Args:
    feature_extractor ([`ClapFeatureExtractor`]):
        The audio processor is a required input.
    tokenizer ([`RobertaTokenizerFast`]):
        The tokenizer is a required input.
ClapFeatureExtractor)RobertaTokenizerRobertaTokenizerFastc                 $   > [         TU ]  X5        g )N)super__init__)selffeature_extractor	tokenizer	__class__s      b/home/james-whalen/.local/lib/python3.13/site-packages/transformers/models/clap/processing_clap.pyr   ClapProcessor.__init__0   s    *6    audioszv4.59.0audio)versionnew_nametextkwargsc                 b   > Ub  Uc  [         R                  S5        Un[        TU ]  " SXS.UD6$ )z
Forwards the `audio` and `sampling_rate` arguments to [`~ClapFeatureExtractor.__call__`] and the `text`
argument to [`~RobertaTokenizerFast.__call__`]. Please refer to the docstring of the above two methods for more
information.
z^Using `audios` keyword argument is deprecated when calling ClapProcessor, instead use `audio`.)r"   r    )loggerwarningr   __call__)r   r"   r   r   r#   r   s        r   r(   ClapProcessor.__call__3   s=     %-NNp EwATA&AAr   r%   )NNN)__name__
__module____qualname____firstlineno____doc__feature_extractor_classtokenizer_classr   r   r   r   r   r
   listr   r	   r   r(   __static_attributes____classcell__)r   s   @r   r   r      s     5BO7 Xy7C im'+&*	BuY(94	?DQbLccdeB $B 
#	B
 )*B DBr   r   N)r.   typingr   r   audio_utilsr   processing_utilsr   r   r	   tokenization_utils_baser
   r   utilsr   utils.deprecationr   
get_loggerr*   r&   r   __all__r%   r   r   <module>r<      sL    # % H H C  0 
		H	%)BN )BX 
r   