Skip to content

Text to vertical video in 100+ styles: AI codes each scene (HTML/SVG/WebGL), renders a 9:16 MP4 with music and English/Vietnamese voice. MCP, CLI and REST for AI agents.

Merge branch 'feat/voice-clone' into test/full

Lumtek4552126e5606
diff --cc cli.mjs
index 5f56f9b,9b2a877..a1e2ff2
--- a/cli.mjs
+++ b/cli.mjs
@@@ -8,8 -8,9 +8,9 @@@
// node cli.mjs list [--json]
// node cli.mjs show <jobId>
// node cli.mjs templates [--json]
-// node cli.mjs edit <video> --style <id> [--music file] [--content "dặn thêm"] [--names "Lumfin, …"] [--draft] [--llm off] [--json]
+// node cli.mjs edit <video> --style <id> [--music file] [--content "dặn thêm"] [--names "Lumfin, …"] [--target 45] [--draft] [--llm off] [--json]
// node cli.mjs edit-revise <editId> "<lời sửa>" [--file f] · edit-show <editId> · edit-run <editId> · edit-rm <editId>
+ // node cli.mjs voices [--json] · voice-add <file> --name "Tên" --consent [--text "lời đoạn mẫu"] · voice-rename <id> "Tên" · voice-rm <id>
import fs from 'node:fs';
import path from 'node:path';
import { createJob, createJobs, parseTemplateIds, MAX_BATCH, runJob, renderJob, runDue, listJobs, readJob, readLog, jobPaths, loadCatalog, hasGuidance, exportOutput } from './generator/jobs.mjs';
@@@ -58,7 -59,12 +60,13 @@@ function usage()
edit-show <editId> [--json] trạng thái, tiến độ, chữ LLM đã sửa, log
edit-run <editId> chạy 1 edit đã tạo (MCP/REST dùng)
edit-rm <editId> xoá hẳn 1 edit (thư mục edits/<id>)
- edit-styles [--json] các kiểu edit (edit-styles/<id>.md): id, tên, độ dài mặc định, có ảnh minh hoạ chưa`);
++ edit-styles [--json] các kiểu edit (edit-styles/<id>.md): id, tên, độ dài mặc định, có ảnh minh hoạ chưa
+ voices [--json] liệt kê giọng có sẵn + "Giọng của tôi" (giọng nhân bản, id vc-…)
+ voice-add <file> --name "Tên" --consent [--text "lời đoạn mẫu"] [--json]
+ nhân bản giọng từ 1 file (wav/mp3/m4a/ogg/webm, 10 giây – 3 phút, ≤ 30 MB).
+ --consent: xác nhận đây là giọng của bạn, hoặc bạn được người đó cho phép dùng.
+ Lưu ở ~/.lumreels/voices/<id>/ (đổi bằng LUMREELS_VOICES_DIR). Dùng: make … --voice <id>
+ voice-rename <id> "Tên" · voice-rm <id>`);
}
const readContent = (c) => (fs.existsSync(c) && fs.statSync(c).isFile() ? fs.readFileSync(c, 'utf8') : c);