src/transformers/models/speecht5/tokenization_speecht5.py/SpeechT5Tokenizer/_convert_token_to_id
class SpeechT5Tokenizer:    def _convert_token_to_id(self, token):
        """Converts a token (str) in an id using the vocab."""
        return self.sp_model.piece_to_id(token)