ttslearn.tacotron.frontend.text.text_to_sequence

ttslearn.tacotron.frontend.text.text_to_sequence(text)[source]

Convert text to sequence of numbers

Parameters

text (str) – Input text

Returns

List of numbers

Return type

list

Examples

>>> from ttslearn.tacotron.frontend.text import text_to_sequence
>>> text_to_sequence("Hello world")
>>> [1, 10, 7, 14, 14, 17, 39, 25, 17, 20, 14, 6, 2]