# 内容自动化Agent配置文件 # API配置 api: openai: api_key: "your_openai_api_key_here" model: "gpt-3.5-turbo" max_tokens: 2000 temperature: 0.7 # 语音合成API配置 voice: provider: "azure" # 可选: azure, google, elevenlabs azure: subscription_key: "your_azure_key" region: "eastus" voice_name: "zh-CN-XiaoxiaoNeural" elevenlabs: api_key: "your_elevenlabs_key" voice_id: "your_voice_id" # 爬虫配置 crawler: user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" delay_range: [1, 3] # 请求延迟范围(秒) max_retries: 3 timeout: 30 concurrent_limit: 5 # 内容提取配置 extraction: min_content_length: 100 # 最小内容长度 max_content_length: 5000 # 最大内容长度 remove_ads: true remove_scripts: true preserve_formatting: true # 改稿配置 rewriting: style_options: - "正式" - "口语化" - "幽默" - "专业" - "简洁" target_length: 800 # 目标字数 preserve_keywords: true add_call_to_action: true # 语音生成配置 voice_generation: output_format: "mp3" sample_rate: 24000 bitrate: 128 speed: 1.0 # 语速倍速 # 视频生成配置 video_generation: resolution: "1920x1080" fps: 30 duration_per_sentence: 3 # 每句话持续时间(秒) background_color: "#000000" text_color: "#FFFFFF" font_size: 24 # 路径配置 paths: input: "input" output: "output" logs: "logs" temp: "temp" # 日志配置 logging: level: "INFO" format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s" max_file_size: "10MB" backup_count: 5