Spaces:
Running
Running
File size: 2,533 Bytes
96154e7 a3fdb3c 96154e7 a3fdb3c 96154e7 db2bd16 5a007ca db2bd16 8047063 a3fdb3c 5adc4ce 8047063 db2bd16 8047063 ca266e0 bc5091e e9bcee8 5adc4ce e431b2b 96154e7 e9bcee8 5adc4ce 96154e7 5adc4ce e431b2b 96154e7 e9bcee8 5adc4ce e431b2b 96154e7 e9bcee8 5adc4ce e431b2b 96154e7 |
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 |
"""
constants.py
This module defines global constants used throughout the project.
"""
from src.types import OptionKey, TTSProviderName
# UI constants
HUME_AI: TTSProviderName = 'Hume AI'
ELEVENLABS: TTSProviderName = 'ElevenLabs'
UNKNOWN_PROVIDER: TTSProviderName = 'Unknown'
PROMPT_MIN_LENGTH: int = 10
PROMPT_MAX_LENGTH: int = 400
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 prompts categorized by theme, used to provide users with
# inspiration for generating creative text for expressive TTS.
SAMPLE_PROMPTS: dict = {
'๐ Dramatic Monologue (Stranded Astronaut)':
'Write a short dramatic monologue from a lone astronaut stranded on Mars, speaking to '
'mission control for the last time. The tone should be reflective and filled with awe, conveying '
'resignation and finality. Describe the Martian landscape and their thoughts in a way that '
'would evoke emotion and depth.',
'๐ Poetic Sonnet (The Passage of Time)':
'Compose a concise sonnet about the passage of time, using vivid imagery and a flowing, '
'melodic rhythm. The poem should evoke the contrast between fleeting moments and eternity, '
'capturing both beauty and melancholy, with natural pacing for speech delivery.',
"๐ฑ Whimsical Children's Story (Talking Cat)":
'Tell a short, whimsical bedtime story about a mischievous talking cat who sneaks into a grand '
'wizardโs library at night and accidentally casts a spell that brings the books to life. Keep the '
'tone playful and filled with wonder, ensuring the language flows smoothly.',
'๐ฅ Intense Speech (Freedom & Justice)':
'Write a powerful, impassioned speech from a rebel leader rallying their people against a '
'tyrant. The speech should be urgent, filled with conviction, and call for freedom and justice, '
'making sure the emotional intensity is evident in the phrasing.',
'๐ป Mysterious Horror Scene (Haunted Lighthouse)':
'Describe a chilling ghostly encounter in an abandoned lighthouse on a foggy night. The '
'protagonist, alone and cold, hears whispers from the shadows, telling them secrets they were '
'never meant to know. Use language that builds suspense and tension, ensuring it sounds '
'haunting and engaging.'
} |