maoda-commander-tt 0.0.40 → 0.0.42

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.
package/README.md CHANGED
@@ -58,6 +58,27 @@ pnpm build
58
58
  pnpm start -- --help
59
59
  ```
60
60
 
61
+ ## AI 音频生成
62
+
63
+ `ai audio` 接受一段自然语言提示词并等待 XYQ 返回 MP3。参考音频可选;提供时,
64
+ 提示词需自行用 `@音频1` 引用它,命令不会改写提示词。
65
+
66
+ ```bash
67
+ # 纯文本生成音频
68
+ tt ai audio '萝莉音说:“我今天不回来了”'
69
+
70
+ # 参考一段本地音频的音色
71
+ tt ai audio --audio ./reference.mp3 \
72
+ '@音频1 参考它的音色,说:“我生气了,哼”'
73
+
74
+ # 等待生成并下载到本地;省略 --output 时返回远端地址
75
+ tt ai audio --audio ./reference.mp3 --output ./result.mp3 \
76
+ '@音频1 参考它的音色,说:“我生气了,哼”'
77
+ ```
78
+
79
+ 命令固定使用 `seedaudio_1.0`、MP3 和 44.1 kHz,最多等待 60 秒。参考音频直接
80
+ 上传,不进入持久素材缓存。
81
+
61
82
  ## 如何扩展新命令
62
83
 
63
84
  1. 在 `src/commands/` 下新建文件,创建继承 `BaseCommand<TOptions>` 的类: