File size: 1,031 Bytes
f71bc95 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | EMOTION_TO_SYMBOL = {
"neutral": "π",
"joy": "π",
"sadness": "π’",
"anger": "π‘",
"fear": "π±",
"surprise": "π²",
"dismissive": "π",
"confusion": "π€",
}
VALID_EMOTIONS = tuple(EMOTION_TO_SYMBOL.keys())
INTENSITY_SYMBOLS = (
"βͺ",
"β ",
"β‘",
"β’",
"β£",
"β€",
"β₯",
"β¦",
"β§",
"β¨",
)
SPEAKER_IDS = {
"skilled_hero_man": 0,
"skilled_hero_woman": 1,
"fun_hero_man": 2,
"fun_hero_woman": 3,
"strong_hero_man": 4,
"strong_hero_woman": 5,
"mad_scientist_man": 6,
"mad_scientist_woman": 7,
"clever_villain_man": 8,
"clever_villain_woman": 9,
"narrator_man": 10,
"narrator_woman": 11,
"wise_elder_man": 12,
"wise_elder_woman": 13,
"outgoing_anime_man": 14,
"outgoing_anime_woman": 15,
"scary_villain_man": 16,
"scary_villain_woman": 17,
"news_reporter_man": 18,
"news_reporter_woman": 19,
}
DEFAULT_ESPEAK_VOICE = "en-us"
DEFAULT_SAMPLE_RATE = 22050
|