def METHOD_NAME(self, phonemes: List[str]) -> np.ndarray:
    # replace unk phone with sp
    phonemes = [
        phn if phn in self.vocab_phones else "sp" for phn in phonemes
    ]
    phone_ids = [self.vocab_phones[item] for item in phonemes]
    return np.array(phone_ids, np.int64)