Demo
Chapters
Core modules
Helpers
Advanced topics
Meta information
ttslearn.tacotron.frontend.text.
text_to_sequence
Convert text to sequence of numbers
text (str) – Input text
List of numbers
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]