← 返回 Skills 市场
zhenstaff

drama generator

作者 Justin Liu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
424
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install drama-generator
功能描述
Automated drama video generator - from script to multi-character drama videos with OpenAI TTS, Whisper, and Remotion
使用说明 (SKILL.md)

Drama Generator

Tagline: 短剧生成 - 从剧本到视频,一键生成 | From Script to Video, One-Click Generation


中文 / Chinese

简介

Drama Generator(短剧生成器) - 自动化短剧视频生成系统

将剧本文本自动转换为多角色配音的专业短剧视频。支持场景切换、角色对话、旁白等完整短剧元素。

核心功能

  • 多角色对话 - 自动识别角色,分配不同声音(6种声音选择)
  • 剧本解析 - 支持标准短剧格式(场景 + 角色 + 对话)
  • 智能配音 - 基于角色自动选择合适的 TTS 声音
  • 场景切换 - 美观的场景转场动画效果
  • 对话框样式 - 专业的对话呈现,角色名突出显示
  • 旁白支持 - 特殊的旁白视觉风格(引号样式)
  • 完全自动化 - 一键从剧本到视频的完整流水线

使用场景

  1. 短剧创作 - 快速生成短剧视频内容
  2. 内容创作 - 制作对话类视频素材
  3. 教育培训 - 场景化教学演示视频
  4. 营销推广 - 故事化产品介绍视频
  5. 娱乐创作 - AI 辅助短剧制作

剧本格式

支持标准的短剧剧本格式:

[场景N - 地点 - 时间]
角色名: 对话内容
旁白: 旁白内容

示例:

[场景1 - 办公室 - 早晨]
旁白: 又是忙碌的一天。
小明: 早啊,今天的会议准备好了吗?
小红: 准备好了!

[场景2 - 会议室 - 上午]
老板: 大家好,我们开始吧。
小明: (紧张) 好的,老板。

快速开始

安装

# npm 全局安装
npm install -g openclaw-drama-generator

# 或从 GitHub 克隆
git clone https://github.com/ZhenRobotics/openclaw-drama-generator.git
cd openclaw-drama-generator
npm install

配置 API Key

# OpenAI(推荐)
export OPENAI_API_KEY="sk-..."

# 或其他提供商
export AZURE_TTS_KEY="..."
export ALIYUN_ACCESS_KEY_ID="..."

生成第一个短剧

# 1. 创建剧本文件
cat > my-drama.txt \x3C\x3C'EOF'
[场景1 - 咖啡厅 - 下午]
旁白: 这是一个温暖的午后。
小美: 你好,好久不见!
小王: 是啊,最近很忙。
小美: 在学习做短剧视频,用AI生成的。
小王: 听起来很酷!
EOF

# 2. 一键生成视频
drama-generator my-drama.txt

# 3. 查看结果
mpv out/my-drama.mp4

技术特点

  • 多提供商支持 - OpenAI、Azure、阿里云、腾讯云 TTS
  • 自动声音映射 - 智能分配角色声音(6种声音)
  • 精确时间戳 - Whisper API 同步对话
  • 专业视觉 - Remotion 渲染引擎,赛博风格
  • 高性能 - 本地渲染,快速输出

输出规格

  • 分辨率: 1080 x 1920 (竖屏,适合抖音/快手/视频号)
  • 帧率: 30 fps
  • 格式: MP4 (H.264 + AAC)
  • 音频: 多角色配音,自动拼接
  • 时长: 根据剧本自动计算

角色声音

声音 特点 适合角色
alloy 中性,清晰 男性角色
echo 男性,稳重 成熟男性
fable 英式,优雅 旁白
onyx 深沉,有力 领导/老板
nova 女性,活泼 年轻女性
shimmer 柔和,温暖 旁白/女性

成本估算

使用 OpenAI TTS + Whisper:

  • 每分钟短剧约 $0.015
  • 非常经济实惠

性能

处理时间(1分钟短剧):

  • 剧本解析: \x3C1秒
  • TTS 生成: 10-20秒
  • 时间戳提取: 5-10秒
  • 场景生成: \x3C1秒
  • 视频渲染: 30-90秒
  • 总计: 50-120秒

项目链接


English

Introduction

Drama Generator - Automated drama video generation system

Automatically converts drama scripts into multi-character voiced professional drama videos. Supports scene transitions, character dialogues, narration, and complete drama elements.

Core Features

  • Multi-Character Dialogue - Automatic character recognition with different voices (6 voice options)
  • Script Parsing - Support for standard drama format (scenes + characters + dialogues)
  • Smart Voice Assignment - Automatically select appropriate TTS voices based on characters
  • Scene Transitions - Beautiful scene transition animations
  • Dialogue Box Style - Professional dialogue presentation with highlighted character names
  • Narration Support - Special visual style for narration (quotation marks style)
  • Full Automation - One-click complete pipeline from script to video

Use Cases

  1. Drama Creation - Quickly generate drama video content
  2. Content Creation - Create dialogue-based video materials
  3. Education & Training - Scenario-based teaching demonstration videos
  4. Marketing - Story-based product introduction videos
  5. Entertainment - AI-assisted drama production

Script Format

Standard drama script format:

[Scene N - Location - Time]
Character Name: Dialogue content
Narrator: Narration content

Example:

[Scene 1 - Office - Morning]
Narrator: Another busy day begins.
Ming: Good morning, is the meeting ready?
Hong: Ready!

[Scene 2 - Meeting Room - Morning]
Boss: Hello everyone, let's begin.
Ming: (nervous) Yes, boss.

Quick Start

Installation

# npm global install
npm install -g openclaw-drama-generator

# Or clone from GitHub
git clone https://github.com/ZhenRobotics/openclaw-drama-generator.git
cd openclaw-drama-generator
npm install

Configure API Key

# OpenAI (recommended)
export OPENAI_API_KEY="sk-..."

# Or other providers
export AZURE_TTS_KEY="..."
export ALIYUN_ACCESS_KEY_ID="..."

Generate Your First Drama

# 1. Create script file
cat > my-drama.txt \x3C\x3C'EOF'
[Scene 1 - Cafe - Afternoon]
Narrator: A warm afternoon.
Mei: Hello, long time no see!
Wang: Yes, been very busy.
Mei: Learning to make drama videos with AI.
Wang: Sounds cool!
EOF

# 2. Generate video with one command
drama-generator my-drama.txt

# 3. View result
mpv out/my-drama.mp4

Technical Features

  • Multi-Provider Support - OpenAI, Azure, Alibaba Cloud, Tencent Cloud TTS
  • Auto Voice Mapping - Smart character voice assignment (6 voices)
  • Precise Timestamps - Whisper API dialogue synchronization
  • Professional Visuals - Remotion rendering engine, cyber style
  • High Performance - Local rendering, fast output

Output Specifications

  • Resolution: 1080 x 1920 (Portrait, suitable for TikTok/Douyin/Kuaishou)
  • Frame Rate: 30 fps
  • Format: MP4 (H.264 + AAC)
  • Audio: Multi-character voices, automatically concatenated
  • Duration: Auto-calculated from script

Character Voices

Voice Characteristics Suitable For
alloy Neutral, clear Male characters
echo Male, steady Mature males
fable British, elegant Narration
onyx Deep, powerful Leaders/bosses
nova Female, lively Young females
shimmer Soft, warm Narration/females

Cost Estimation

Using OpenAI TTS + Whisper:

  • About $0.015 per minute of drama
  • Very cost-effective

Performance

Processing time (1-minute drama):

  • Script parsing: \x3C1s
  • TTS generation: 10-20s
  • Timestamp extraction: 5-10s
  • Scene generation: \x3C1s
  • Video rendering: 30-90s
  • Total: 50-120s

Project Links


License: MIT-0 Version: 2.0.0 Author: ZhenStaff

安全使用建议
This skill appears to do what it claims (convert scripts to multi-character videos using TTS, Whisper, Remotion), but there are a few things to check before installing: - The SKILL.md expects provider API keys (OPENAI_API_KEY, AZURE_TTS_KEY, ALIYUN/TENCENT keys) though the registry metadata lists no required env vars — that's an inconsistency. Expect to provide secrets for external TTS/Whisper services. - Using the skill will send your scripts/audio to third-party APIs (OpenAI, Azure, Alibaba, Tencent). Do not process sensitive or private content unless you accept that it will be transmitted. - Because the skill is instruction-only, installing the upstream npm package or cloning the GitHub repo will fetch and run code. Inspect the GitHub repository and the npm package contents (scripts, shell helpers) for any unexpected network calls, telemetry, or shell execution before running. - When you try it, use limited-scope API keys, billing limits, and rate limits; test in an isolated/dev environment; ensure ffmpeg and Remotion are from trusted package sources. If you want a stronger assurance, provide the actual upstream repository package contents or a link to the exact npm release and I can review the code or point out risky files/commands to inspect.
功能分析
Type: OpenClaw Skill Name: drama-generator Version: 1.0.0 The drama-generator skill bundle is a legitimate tool designed to automate the creation of multi-character drama videos from text scripts using TTS services (OpenAI, Azure, etc.) and the Remotion rendering engine. The provided files (skill.md, readme.md, and _meta.json) contain standard documentation, installation instructions, and usage examples that align perfectly with the stated purpose. There is no evidence of malicious intent, data exfiltration, or prompt injection attacks.
能力评估
Purpose & Capability
The declared purpose (automated drama videos using TTS, Whisper, Remotion) matches the instructions: generating TTS, calling Whisper for timestamps, and local rendering with Remotion/ffmpeg. However, the registry metadata lists no required environment variables or credentials while the SKILL.md explicitly shows use of OPENAI_API_KEY, AZURE_TTS_KEY, ALIYUN/TENCENT keys, etc. That metadata mismatch is an inconsistency to be aware of.
Instruction Scope
SKILL.md contains detailed, narrowly-scoped runtime instructions: install via npm/clone, set provider API keys, run parsing/TTS/whisper scripts and Remotion render. The steps reference local files, external provider APIs (OpenAI/Azure/Alibaba/Tencent) and ffmpeg—these are expected for the stated task and do not appear to request unrelated system data.
Install Mechanism
The skill is instruction-only (no bundled install spec). It instructs users to install from npm or GitHub (common). Because there's no automatic installer included in the skill bundle, nothing is written to disk by the skill itself, lowering immediate risk. Still, installing the upstream npm package or running the repo's scripts will fetch and execute remote code — review upstream sources before installing.
Credentials
Requesting API keys for OpenAI, Azure, Alibaba, Tencent is proportionate to a multi-provider TTS/Whisper tool. The concern is the registry metadata omitted these required creds while the SKILL.md documents them; additionally, the skill will transmit script/audio to third-party TTS/Whisper endpoints, so secrets and content will leave the machine. Limit scope of keys (separate billing/key with quotas) and avoid sending sensitive text/audio.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and is user-invocable. Autonomous invocation disabled? (registry shows normal default). No evidence it needs elevated or permanent agent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install drama-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /drama-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Drama Generator 2.0.0 – Major new release with full script-to-video automation - Automatically generates professional multi-character drama videos from scripts. - Supports scene switching, distinct character voices (6 options), narration, and professional visual elements. - Integrates OpenAI TTS, Whisper, and Remotion for seamless voice synthesis, time alignment, and video rendering. - One-click pipeline from script to vertical (1080x1920) MP4 drama video. - Flexible provider support: OpenAI, Azure, Alibaba Cloud, Tencent Cloud TTS. - Includes detailed documentation and example scripts for quick start.
元数据
Slug drama-generator
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

drama generator 是什么?

Automated drama video generator - from script to multi-character drama videos with OpenAI TTS, Whisper, and Remotion. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 424 次。

如何安装 drama generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install drama-generator」即可一键安装,无需额外配置。

drama generator 是免费的吗?

是的,drama generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

drama generator 支持哪些平台?

drama generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 drama generator?

由 Justin Liu(@zhenstaff)开发并维护,当前版本 v1.0.0。

💬 留言讨论