File size: 486 Bytes
b9c74dd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # -*- coding: utf-8 -*-
"""
Luxembourgish grapheme symbols for VITS2 TTS.
Based on the character set from the Kerstin dataset.
"""
_pad = "_"
# Punctuation including special quotes used in Luxembourgish text
_punctuation = "!\"'()+,-./:;?[] " + "«»‒–'" + "'" + "„"
_letters = "abcdefghijklmnopqrstuvwxyzäëéèêïöüàâîôûçáãßćğœš"
# Export all symbols:
symbols = [_pad] + list(_punctuation) + list(_letters)
# Special symbol ids
SPACE_ID = symbols.index(" ")
|