-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
38 lines (31 loc) · 1.2 KB
/
Copy pathconfig.py
File metadata and controls
38 lines (31 loc) · 1.2 KB
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
"""
Configuration module for the mood orchestration agent.
"""
import os
from pathlib import Path
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
# API Keys
GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "")
SUNO_API_KEY = os.getenv("SUNO_API_KEY", "")
# Bulb Server Configuration
BULB_SERVER_URL = os.getenv("BULB_SERVER_URL", "http://localhost:3000")
# Audio Configuration
AUDIO_SAMPLE_RATE = 44100 # Hz
AUDIO_CHANNELS = 1 # Mono
RECORDING_DURATION = 5 # seconds
# Mood to Music Style Mappings
MOOD_TO_MUSIC_STYLE = {
"happy": "upbeat pop music with cheerful melodies, major chords, bright instrumentation",
"sad": "melancholic piano ballad with slow tempo, minor chords, emotional strings",
"calm": "ambient relaxing music with soft pads, gentle piano, nature sounds",
"energetic": "high-energy electronic dance music with driving beats, synth leads",
"angry": "intense rock music with heavy guitars, aggressive drums, powerful vocals",
}
# File Paths
PROJECT_ROOT = Path(__file__).parent
TEMP_DIR = PROJECT_ROOT / "temp"
TEMP_DIR.mkdir(exist_ok=True)
# Suno API Configuration
SUNO_MODEL = "V4_5ALL" # Better song structure, max 8 min