MeloSymbols
Helpers & Utilities · AiDotNet.TextToSpeech.EndToEnd
MeloTTS’s symbol set and language tables (myshell-ai/MeloTTS melo/text/symbols.py): 219 symbols shared by its
languages, 16 tones (each language’s tones offset by its start) and 8 language ids; and its add_blank.
Properties
| Property |
Summary |
IReadOnlyList<string> Symbols { get; } |
The symbols, in id order. |
Methods
| Method |
Summary |
ValueTuple<int[], int[], int[]> ToSequence(IReadOnlyList<string> phones, IReadOnlyList<int> tones, string language) |
cleaned_text_to_sequence: symbol ids, tones offset to the language, and the language id per symbol. |
bool Contains(string symbol) |
Whether symbol is one of MeloTTS’s symbols. |
int LanguageId(string language) |
The id of each language (language_id_map). |
int ToneStart(string language) |
The first tone id of each language (language_tone_start_map). |
int[] Intersperse(IReadOnlyList<int> sequence) |
commons.intersperse(sequence, 0): a 0 before, between and after the items. |
Fields
| Field |
Summary |
int LanguageCount |
The number of language ids. |
int ToneCount |
The number of tones (6 Chinese, 1 Japanese, 4 English, 1 Korean, 1 Spanish, 1 French, plus the rest). |