def METHOD_NAME(self, raw, rate):
    """
    Converts input audio to mono with a sample rate equal to the pipeline model's
    sample rate.
    Args:
        raw: raw audio data
    Returns:
        audio data ready for pipeline model
    """
    # Convert stereo to mono, if necessary
    raw = self.mono(raw)
    # Resample to model sample rate
    raw, rate = self.resample(raw, rate)
    return {"raw": raw, "sampling_rate": rate}