@optima-chat/optima-agent 0.9.10 → 0.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: video-gen
|
|
3
|
-
description: "帮商家用 AI 生成产品视频(社媒投放 /
|
|
3
|
+
description: "帮商家用 AI 生成产品视频(社媒投放 / 产品详情页 / 数字人口播)。触发场景:用户要做视频(做视频/生成视频/产品视频/宣传视频/图生视频)、用户给视频链接+产品图要复刻(复刻/翻拍/仿拍/做同款/爆款复刻)、用户给产品图想发社媒(TikTok视频/IG视频/短视频)、用户给产品图想放详情页(PDP视频/产品展示视频)、用户要数字人/口播/真人讲解/talking head视频。"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Video Generation Skill
|
|
@@ -343,6 +343,8 @@ Storyboard 确认后自动推导。用户通常不改。
|
|
|
343
343
|
| 人物讲话 | talking-head |
|
|
344
344
|
|
|
345
345
|
> **DashScope 回退**:如需 DashScope 特有功能(自动配音、负向提示词),可用 `--provider dashscope`,但仅支持图生视频,时长 5|10s。
|
|
346
|
+
>
|
|
347
|
+
> **数字人口播(talking-head)**:策略为 `talking-head` 时,使用 `gen video --provider heygen` 生成。不走 Sora2。详见下方「数字人口播」段。
|
|
346
348
|
|
|
347
349
|
### 1. 写 `videos/{id}/production-plan.md`
|
|
348
350
|
|
|
@@ -458,6 +460,22 @@ gen image "<编辑指令>" -i <原始首帧> -i <产品图> -o assets/keyframes/
|
|
|
458
460
|
printf "file '%s'\n" clips/seg-*.mp4 > concat_list.txt
|
|
459
461
|
ffmpeg -f concat -safe 0 -i concat_list.txt -c copy final.mp4
|
|
460
462
|
|
|
463
|
+
# 数字人口播视频(talking-head 策略)
|
|
464
|
+
gen video --provider heygen \
|
|
465
|
+
--avatar <avatar_id> \
|
|
466
|
+
--voice <voice_id> \
|
|
467
|
+
--text "口播文本" \
|
|
468
|
+
-o clips/seg-N.mp4
|
|
469
|
+
|
|
470
|
+
# 数字人口播 + 可选参数
|
|
471
|
+
gen video --provider heygen \
|
|
472
|
+
--avatar <avatar_id> \
|
|
473
|
+
--voice <voice_id> \
|
|
474
|
+
--text "口播文本" \
|
|
475
|
+
--voice-emotion Friendly \
|
|
476
|
+
--bg-color "#1a1a2e" \
|
|
477
|
+
-o clips/seg-N.mp4
|
|
478
|
+
|
|
461
479
|
# 任务查询 / 取消 / 重试
|
|
462
480
|
gen task get <task_id>
|
|
463
481
|
gen task cancel <task_id>
|
|
@@ -537,6 +555,70 @@ gen task retry <task_id>
|
|
|
537
555
|
| gen task 超时 | 按 pending.json 重提 |
|
|
538
556
|
| git commit 失败 | 说明原因,不 reset |
|
|
539
557
|
|
|
558
|
+
## 数字人口播(talking-head 策略)
|
|
559
|
+
|
|
560
|
+
用于需要人物讲话的场景(产品介绍、品牌宣传、客服应答等)。使用 `--provider heygen` 调用。
|
|
561
|
+
|
|
562
|
+
### 触发条件
|
|
563
|
+
|
|
564
|
+
用户意图包含:数字人 / 真人讲解 / 口播 / talking head / 主播 / 代言人 / 讲话视频
|
|
565
|
+
|
|
566
|
+
### 可用 Avatar
|
|
567
|
+
|
|
568
|
+
| avatar_id | 名称 |
|
|
569
|
+
|---|---|
|
|
570
|
+
| `Abigail_expressive_2024112501` | Abigail(上半身,表情丰富) |
|
|
571
|
+
| `Abigail_standing_office_front` | Abigail 办公室正面 |
|
|
572
|
+
| `Aditya_public_4` | Aditya 棕色西装 |
|
|
573
|
+
| `Adrian_public_3_20240312` | Adrian 蓝色衬衫 |
|
|
574
|
+
|
|
575
|
+
### 可用 Voice
|
|
576
|
+
|
|
577
|
+
| voice_id | 名称 |
|
|
578
|
+
|---|---|
|
|
579
|
+
| `f38a635bee7a4d1f9b0a654a31d050d2` | Chill Brian(男) |
|
|
580
|
+
| `cef3bc4e0a84424cafcde6f2cf466c97` | Ivy(女) |
|
|
581
|
+
| `b966c31caf124c2a99f19ff1479c964f` | Jessica Anne Bogart(女) |
|
|
582
|
+
| `42d00d4aac5441279d8536cd6b52c53c` | Hope(女) |
|
|
583
|
+
|
|
584
|
+
### 可选参数
|
|
585
|
+
|
|
586
|
+
| 参数 | 说明 | 默认值 |
|
|
587
|
+
|---|---|---|
|
|
588
|
+
| `--avatar-style <style>` | normal \| circle \| closeUp | normal |
|
|
589
|
+
| `--voice-speed <n>` | 语速 0.5-1.5 | 1.0 |
|
|
590
|
+
| `--voice-emotion <emotion>` | Excited \| Friendly \| Serious \| Soothing \| Broadcaster | — |
|
|
591
|
+
| `--bg-color <hex>` | 背景色 | — |
|
|
592
|
+
| `--bg-image <url>` | 背景图 URL | — |
|
|
593
|
+
| `--caption` | 启用字幕 | — |
|
|
594
|
+
| `--title <title>` | 视频标题 | — |
|
|
595
|
+
|
|
596
|
+
### 用法示例
|
|
597
|
+
|
|
598
|
+
```bash
|
|
599
|
+
# 基本用法
|
|
600
|
+
gen video --provider heygen \
|
|
601
|
+
--avatar Abigail_expressive_2024112501 \
|
|
602
|
+
--voice f38a635bee7a4d1f9b0a654a31d050d2 \
|
|
603
|
+
--text "欢迎来到我们的店铺,今天给大家介绍一款新品" \
|
|
604
|
+
-o clips/talking-head.mp4
|
|
605
|
+
|
|
606
|
+
# 带情感和背景
|
|
607
|
+
gen video --provider heygen \
|
|
608
|
+
--avatar Aditya_public_4 \
|
|
609
|
+
--voice f38a635bee7a4d1f9b0a654a31d050d2 \
|
|
610
|
+
--text "This product will change your daily routine" \
|
|
611
|
+
--voice-emotion Friendly \
|
|
612
|
+
--bg-color "#ffffff" \
|
|
613
|
+
-o clips/talking-head.mp4
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
### 注意事项
|
|
617
|
+
|
|
618
|
+
- text 最长 5000 字符
|
|
619
|
+
- 数字人视频生成约 2-5 分钟
|
|
620
|
+
- 可与 Sora2 产品镜头混合剪辑(数字人做 intro/outro,产品展示用 Sora2)
|
|
621
|
+
|
|
540
622
|
## 相关工具
|
|
541
623
|
|
|
542
624
|
- `gen video` — 图/文 → 视频
|