File size: 2,541 Bytes
96154e7
a3fdb3c
96154e7
a3fdb3c
96154e7
 
7f69677
 
 
e98b5e2
5bf19b3
db2bd16
e98b5e2
5a007ca
d1ed6b1
 
5bf19b3
8047063
5bf19b3
 
 
 
 
8047063
d1ed6b1
 
 
 
 
8047063
ca266e0
5bf19b3
 
 
 
 
 
6431bab
5bf19b3
 
 
6431bab
5bf19b3
 
 
6431bab
5bf19b3
 
 
6431bab
5bf19b3
 
 
6431bab
d1ed6b1
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
53
54
55
56
"""
constants.py

This module defines global constants used throughout the project.
"""

# Standard Library Imports
from typing import List

# Third-Party Library Imports
from src.types import ComparisonType, OptionKey, TTSProviderName


# UI constants
HUME_AI: TTSProviderName = "Hume AI"
ELEVENLABS: TTSProviderName = "ElevenLabs"
TTS_PROVIDERS: List[TTSProviderName] = ["Hume AI", "ElevenLabs"]

HUME_TO_HUME: ComparisonType = "Hume AI - Hume AI"
HUME_TO_ELEVENLABS: ComparisonType = "Hume AI - ElevenLabs"

CHARACTER_DESCRIPTION_MIN_LENGTH: int = 20
CHARACTER_DESCRIPTION_MAX_LENGTH: int = 800

OPTION_A: OptionKey = "Option A"
OPTION_B: OptionKey = "Option B"
TROPHY_EMOJI: str = "🏆"
VOTE_FOR_OPTION_A: str = "Vote for option A"
VOTE_FOR_OPTION_B: str = "Vote for option B"


# A collection of pre-defined character descriptions categorized by theme, used to provide users with
# inspiration for generating creative text for expressive TTS, and generating novel voices.
SAMPLE_CHARACTER_DESCRIPTIONS: dict = {
    "🚀 Stranded Astronaut": (
        "A lone astronaut whose voice mirrors the silent vastness of space—a low, steady tone imbued with isolation and quiet wonder. "
        "It carries the measured resolve of someone sending a final transmission, with an undercurrent of wistful melancholy."
    ),
    "📜 Timeless Poet": (
        "An ageless poet with a voice that flows like gentle verse—a soft, reflective tone marked by deliberate pauses. "
        "It speaks with the measured cadence of classic sonnets, evoking both the fragile beauty of time and heartfelt introspection."
    ),
    "🐱 Whimsical Feline": (
        "A mischievous cat whose voice is playful yet mysterious—light, quick-witted, and infused with an enchanting purr. "
        "It hints at secret adventures and hidden charm, balancing exuberance with a subtle, smooth allure."
    ),
    "🔥 Revolutionary Orator": (
        "A defiant orator whose voice builds from quiet determination to passionate fervor—a clear, commanding tone that resonates with conviction. "
        "It starts measured and resolute, then rises to a crescendo of fervor, punctuated by deliberate pauses that emphasize each rallying cry."
    ),
    "👻 Haunted Keeper": (
        "A solitary lighthouse keeper with a voice that carries the weight of forgotten storms—a soft, measured tone with an echo of sorrow. "
        "It speaks as if whispering long-held secrets in the dark, blending quiet melancholy with an air of enduring mystery."
    ),
}