ttslearn.tacotron.frontend.openjtalk.text_to_sequence

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

Convert phoneme + prosody symbols to sequence of numbers

Parameters

text (list) – text as a list of phoneme + prosody symbols

Returns

List of numbers

Return type

list

Examples

>>> from ttslearn.tacotron.frontend.openjtalk import text_to_sequence
>>> text_to_sequence(["^", "m", "i", "[", "z","o", "$"])
>>> [1, 31, 27, 6, 49, 35, 2]