src/transformers/models/speech_to_text_2/processing_speech_to_text_2.py/Speech2Text2Processor/__init__
class Speech2Text2Processor:    def __init__(self, feature_extractor, tokenizer):
        if not isinstance(feature_extractor, SequenceFeatureExtractor):
            raise ValueError(
                f"`feature_extractor` has to be of type {SequenceFeatureExtractor.__class__}, but is {type(feature_extractor)}"
            )
        if not isinstance(tokenizer, Speech2Text2Tokenizer):
            raise ValueError(
                f"`tokenizer` has to be of type {Speech2Text2Tokenizer.__class__}, but is {type(tokenizer)}"
            )

        self.feature_extractor = feature_extractor
        self.tokenizer = tokenizer
        self.current_processor = self.feature_extractor