ttslearn.tacotron.frontend.text.sequence_to_text

ttslearn.tacotron.frontend.text.sequence_to_text(seq)[source]

Convert sequence of numbers to text

Parameters

seq (list) – Input sequence of numbers

Returns

Text

Return type

str

Examples

>>> from ttslearn.tacotron.frontend.text import sequence_to_text
>>> sequence_to_text([1, 10, 7, 14, 14, 17, 39, 25, 17, 20, 14, 6, 2])
>>> ['^', 'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', '$']