knowledge-vault/discussions/technology/Claude-Code/Skills/voice-generation.md

34 lines
869 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Voice Generation
* 远程仓库https://git.wantsong.life/wantsong/voice-generation.git
```bash
# 在另一台机器上 clone
git clone https://git.wantsong.life/wantsong/voice-generation.git
cd voice-generation
conda env create -f environment.yml
conda activate voice-gen
pip install -e .
```
```bash
# 你已经全装好了,直接用
conda activate voice-gen
cd D:/AI/ClaudeCode/voice-ge
# 1. 初始化项目
voice-gen init
# 2. 注册你的声线(用之前上传的 Wantsong 人物录音)
voice-gen voices list # 看到已有的 file_id
# 或者重新注册
voice-gen voices add BroTsong-2026-06-10 "C:\Users\wangq\Documents\录音\BroTsong-Saying.m4a"
# 3. 准备口播稿
echo "Hello, this is a test." > scripts/hello.md
# 4. 批量生成
voice-gen gen --voice BroTsong-Saying scripts
# → output/hello.mp3
```