reddit-video-bot/config.py
sylyx 98e829c995 Initial implementation of reddit-video-bot
Full pipeline: Reddit sourcing → Groq text optimization → Edge-TTS voice
generation → Whisper transcription → FFmpeg video rendering with word-level
subtitles. Includes SQLite deduplication and .env-based config.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 10:29:32 +02:00

24 lines
689 B
Python

import os
from dotenv import load_dotenv
load_dotenv()
# Reddit API Credentials
REDDIT_CLIENT_ID = os.getenv("REDDIT_CLIENT_ID")
REDDIT_CLIENT_SECRET = os.getenv("REDDIT_CLIENT_SECRET")
REDDIT_USER_AGENT = os.getenv("REDDIT_USER_AGENT", "RedditVideoBot/0.1 by /u/YourUsername")
# Groq API Key
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
# Path Settings
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ASSETS_DIR = os.path.join(BASE_DIR, "assets")
OUTPUT_DIR = os.path.join(BASE_DIR, "output")
BACKGROUND_VIDEOS_DIR = os.path.join(ASSETS_DIR, "background_videos")
# Video Settings
VIDEO_WIDTH = 1080
VIDEO_HEIGHT = 1920
FONT_PATH = os.path.join(ASSETS_DIR, "fonts", "BoldFont.ttf")