def sequence_to_phoneme(sequence, tp=None):
    'Converts a sequence of IDs back to a string'
    global _id_to_phonemes
    result = ''
    if tp:
        (_, _phonemes) = make_symbols(**tp)
        _id_to_phonemes = {i: s for (i, s) in enumerate(_phonemes)}
    for symbol_id in sequence:
        if (symbol_id in _id_to_phonemes):
            s = _id_to_phonemes[symbol_id]
            result += s
    return result.replace('}{', ' ')
Converts a sequence of IDs back to a string
def sequence_to_phoneme(sequence, tp=None):
    
    global _id_to_phonemes
    result = 
    if tp:
        (_, _phonemes) = make_symbols(**tp)
        _id_to_phonemes = {i: s for (i, s) in enumerate(_phonemes)}
    for symbol_id in sequence:
        if (symbol_id in _id_to_phonemes):
            s = _id_to_phonemes[symbol_id]
            result += s
    return result.replace('}{', ' ')