39 lines
801 B
Markdown
39 lines
801 B
Markdown
# Tools_scripts_XunFei-Ubuntu
|
|
|
|
Ubuntu 版配音工具,使用 Bash + Python + ffmpeg 替代 PowerShell。
|
|
|
|
## Install
|
|
|
|
```bash
|
|
sudo apt update
|
|
sudo apt install -y python3 python3-pip ffmpeg
|
|
python3 -m pip install -r Tools_scripts_XunFei-Ubuntu/requirements-ubuntu.txt
|
|
```
|
|
|
|
## Environment
|
|
|
|
```bash
|
|
export XF_APPID="your_app_id"
|
|
export XF_APIKEY="your_api_key"
|
|
export XF_APISECRET="your_api_secret"
|
|
```
|
|
|
|
## Generate Voice
|
|
|
|
```bash
|
|
./Tools_scripts_XunFei-Ubuntu/synthesize_xfyun_super_tts.sh \
|
|
--script 配音稿.md \
|
|
--output-dir 02_audio/super_tts \
|
|
--voice x5_lingfeiyi_flow \
|
|
--speed 50
|
|
```
|
|
|
|
## Build Final Video
|
|
|
|
```bash
|
|
python3 Tools_scripts_XunFei-Ubuntu/build_final_video_ubuntu.py \
|
|
--video input.mp4 \
|
|
--audio-dir 02_audio/super_tts \
|
|
--output 05_outputs/final_voiceover.mp4
|
|
```
|