class_docstr: Constructs a Speech2Text2 processor which wraps a Speech2Text2 feature extractor and a Speech2Text2 tokenizer into
  a single processor.
  
  [`Speech2Text2Processor`] offers all the functionalities of [`AutoFeatureExtractor`] and [`Speech2Text2Tokenizer`].
  See the [`~Speech2Text2Processor.__call__`] and [`~Speech2Text2Processor.decode`] for more information.
  
  Args:
      feature_extractor (`AutoFeatureExtractor`):
          An instance of [`AutoFeatureExtractor`]. The feature extractor is a required input.
      tokenizer (`Speech2Text2Tokenizer`):
          An instance of [`Speech2Text2Tokenizer`]. The tokenizer is a required input.
code: def __init__(self, feature_extractor, tokenizer):
      super().__init__(feature_extractor, tokenizer)
      self.current_processor = self.feature_extractor
      self._in_target_context_manager = False
  
file_path: transformers/src/transformers/models/speech_to_text_2/processing_speech_to_text_2.py
imports: import warnings
  from contextlib import contextmanager
  from ...processing_utils import ProcessorMixin
label_desc: Use image node_id 1 to create a new Speech2Text2Processor object from inherited base classes: ProcessorMixin with example: obj = Speech2Text2Processor(feature_extractor, tokenizer)