def METHOD_NAME(
    self,
    audio: Union[str, torch.Tensor],
    tgt_lang: Optional[str] = None,
    synthesize_speech: bool = False,
) -> Union[str, Tuple[str, Tuple[torch.Tensor, int]]]:
    # `audio` is either a file path or a 1xT Tensor
    # return either text or (text, synthetic speech)
    sample = self.get_model_input(self.task, audio)
    return self.get_prediction(
        self.task,
        self.model,
        self.generator,
        sample,
        tgt_lang=tgt_lang,
        synthesize_speech=synthesize_speech,
    )