# transformers 5.24.1 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input

        Main method to featurize and prepare for the model one or several sequence(s).

        Args:
            raw_audio (`np.ndarray`, `list[float]`, `list[np.ndarray]`, `list[list[float]]`):
                The sequence or batch of sequences to be processed. Each sequence can be a numpy array, a list of float
                values, a list of numpy arrays or a list of list of float values. The numpy array must be of shape
                `(num_samples,)` for mono audio (`feature_size = 1`), or `(2, num_samples)` for stereo audio
                (`feature_size = 2`).
            padding (`bool`, `str` or [`~utils.PaddingStrategy`], *optional*, defaults to `True`):
                Select a strategy to pad the returned sequences (according to the model's padding side and padding
                index) among:

                - `True` or `'longest'`: Pad to the longest sequence in the batch (or no padding if only a single
                  sequence if provided).
                - `'max_length'`: Pad to a maximum length specified with the argument `max_length` or to the maximum
                  acceptable input length for the model if that argument is not provided.
                - `False` or `'do_not_pad'` (default): No padding (i.e., can output a batch with sequences of different
                  lengths).
            truncation (`bool`, *optional*, defaults to `False`):
                Activates truncation to cut input sequences longer than `max_length` to `max_length`.
            max_length (`int`, *optional*):
                Maximum length of the returned list and optionally padding length (see above).
            return_tensors (`str` or [`~utils.TensorType`], *optional*):
                If set, will return tensors instead of list of python integers. Acceptable values are:

                - `'pt'`: Return PyTorch `torch.Tensor` objects.
                - `'np'`: Return Numpy `np.ndarray` objects.
            sampling_rate (`int`, *optional*):
                The sampling rate at which the `audio` input was sampled. It is strongly recommended to pass
                `sampling_rate` at the forward call to prevent silent errors.
        
=== parse google
short_description: 'Main method to featurize and prepare for the model one or several sequence(s).'
blank_after_short_description: True
blank_after_long_description: False
style: google
- DocstringParam
  description: |
    The sequence or batch of sequences to be processed. Each sequence can be a numpy array, a list of float
    values, a list of numpy arrays or a list of list of float values. The numpy array must be of shape
    `(num_samples,)` for mono audio (`feature_size = 1`), or `(2, num_samples)` for stereo audio
    (`feature_size = 2`).
  kind: param
  key: 'param'
  arg_name: 'raw_audio'
  type_name: '`np.ndarray`, `list[float]`, `list[np.ndarray]`, `list[list[float]]`'
  is_optional: False
- DocstringParam
  description: |
    Select a strategy to pad the returned sequences (according to the model's padding side and padding
    index) among:
    
    - `True` or `'longest'`: Pad to the longest sequence in the batch (or no padding if only a single
      sequence if provided).
    - `'max_length'`: Pad to a maximum length specified with the argument `max_length` or to the maximum
      acceptable input length for the model if that argument is not provided.
    - `False` or `'do_not_pad'` (default): No padding (i.e., can output a batch with sequences of different
      lengths).
  kind: param
  key: 'param'
  arg_name: 'padding'
  type_name: '`bool`, `str` or [`~utils.PaddingStrategy`]'
  is_optional: True
  default: 'True'
  raw_type_name: '`bool`, `str` or [`~utils.PaddingStrategy`], *optional*, defaults to `True`'
- DocstringParam
  description: 'Activates truncation to cut input sequences longer than `max_length` to `max_length`.'
  kind: param
  key: 'param'
  arg_name: 'truncation'
  type_name: '`bool`'
  is_optional: True
  default: 'False'
  raw_type_name: '`bool`, *optional*, defaults to `False`'
- DocstringParam
  description: 'Maximum length of the returned list and optionally padding length (see above).'
  kind: param
  key: 'param'
  arg_name: 'max_length'
  type_name: '`int`'
  is_optional: True
  raw_type_name: '`int`, *optional*'
- DocstringParam
  description: |
    If set, will return tensors instead of list of python integers. Acceptable values are:
    
    - `'pt'`: Return PyTorch `torch.Tensor` objects.
    - `'np'`: Return Numpy `np.ndarray` objects.
  kind: param
  key: 'param'
  arg_name: 'return_tensors'
  type_name: '`str` or [`~utils.TensorType`]'
  is_optional: True
  raw_type_name: '`str` or [`~utils.TensorType`], *optional*'
- DocstringParam
  description: |
    The sampling rate at which the `audio` input was sampled. It is strongly recommended to pass
    `sampling_rate` at the forward call to prevent silent errors.
  kind: param
  key: 'param'
  arg_name: 'sampling_rate'
  type_name: '`int`'
  is_optional: True
  raw_type_name: '`int`, *optional*'
=== detect
google
=== compose google
Main method to featurize and prepare for the model one or several sequence(s).

Args:
    raw_audio (`np.ndarray`, `list[float]`, `list[np.ndarray]`, `list[list[float]]`): The sequence or batch of sequences to be processed. Each sequence can be a numpy array, a list of float
        values, a list of numpy arrays or a list of list of float values. The numpy array must be of shape
        `(num_samples,)` for mono audio (`feature_size = 1`), or `(2, num_samples)` for stereo audio
        (`feature_size = 2`).
    padding (`bool`, `str` or [`~utils.PaddingStrategy`], *optional*, defaults to `True`): Select a strategy to pad the returned sequences (according to the model's padding side and padding
        index) among:

        - `True` or `'longest'`: Pad to the longest sequence in the batch (or no padding if only a single
          sequence if provided).
        - `'max_length'`: Pad to a maximum length specified with the argument `max_length` or to the maximum
          acceptable input length for the model if that argument is not provided.
        - `False` or `'do_not_pad'` (default): No padding (i.e., can output a batch with sequences of different
          lengths).
    truncation (`bool`, *optional*, defaults to `False`): Activates truncation to cut input sequences longer than `max_length` to `max_length`.
    max_length (`int`, *optional*): Maximum length of the returned list and optionally padding length (see above).
    return_tensors (`str` or [`~utils.TensorType`], *optional*): If set, will return tensors instead of list of python integers. Acceptable values are:

        - `'pt'`: Return PyTorch `torch.Tensor` objects.
        - `'np'`: Return Numpy `np.ndarray` objects.
    sampling_rate (`int`, *optional*): The sampling rate at which the `audio` input was sampled. It is strongly recommended to pass
        `sampling_rate` at the forward call to prevent silent errors.
