anbeime/skill / skills/historical-interview-scripts/historical-interview-scripts
historical-interview-scripts
Verified自媒体创作者在策划历史名人访谈短视频时,当需要融合古今反差与网络热梗打造爆款,使用本技能可自动生成包含吸睛标题、主持人串词与爆笑问答的完整结构化脚本,轻松产出高传播力的趣味短视频文案。
scripts/agents/audio_matcher_agent.py
View on GitHub#!/usr/bin/env python3
"""
音频匹配智能体
"""
from typing import Dict, List, Any
from .base_agent import BaseAgent
class AudioMatcherAgent(BaseAgent):
"""音频匹配智能体"""
def execute(self, storyboards: List[Dict], characters_data: Dict[str, Dict]) -> List[Dict]:
"""
匹配音效和音乐
Args:
storyboards: 分镜列表
characters_data: 人物档案
Returns:
list: 音频配置列表
"""
self.log(f"开始匹配音效和音乐...")
audio_configs = []
for storyboard in storyboards:
audio_config = self._generate_audio_config(storyboard, characters_data)
audio_configs.append(audio_config)
self.log(f"✓ 完成:匹配{len(audio_configs)}个分镜的音频")
return audio_configs
def _generate_audio_config(self, storyboard: Dict, characters_data: Dict) -> Dict:
"""
生成音频配置
Args:
storyboard: 分镜信息
characters_data: 人物档案
Returns:
dict: 音频配置
"""
speaker = storyboard['speaker']
character_data = characters_data.get(speaker, {})
# 音色配置
voice_config = {
'name': character_data.get('name', speaker),
'gender': character_data.get('gender', 'male'),
'age': character_data.get('age', 40),
'style': character_data.get('style', 'serious'),
'tone': character_data.get('tone', 'calm')
}
# BGM配置
bgm_config = {
'type': 'interview' if storyboard['scene_type'] == 'dialogue' else 'opening',
'mood': 'energetic' if storyboard['scene_type'] == 'introduction' else 'calm',
'volume': 0.3
}
# 音效配置
sfx_config = []
if storyboard['scene_type'] == 'introduction':
sfx_config.append({
'type': 'applause',
'timing': '0s',
'duration': '2s'
})
elif storyboard['scene_type'] == 'punchline':
sfx_config.append({
'type': 'laugh_track',
'timing': '1s',
'duration': '3s'
})
return {
'scene_index': storyboard['scene_index'],
'dialogue_audio': {
'voice': voice_config,
'text': storyboard['dialogue']
},
'background_music': bgm_config,
'sound_effects': sfx_config
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |