Skip to content

Commit 889a30c

Browse files
committed
Fix
1 parent bd78041 commit 889a30c

4 files changed

+32
-1
lines changed

README_tts_f2f.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ huggingface-cli download fishaudio/fish-speech-1.5 --local-dir checkpoints/fish-
5858
把你需要生成的文本放在 [example/text.txt](example/text.txt) 中,把要克隆的音色放在 [example/audio.wav](example/audio.wav) 中,然后运行以下命令:
5959
#### command:
6060
```bash
61-
bash run.sh example/audio.wav example/text.txt example/video.mp4
61+
bash inference_from_text.sh example/audio.wav example/text.txt example/video.mp4
6262
# 音色 wav TTS 文本 视频
6363
```
6464

inference_from_audio.sh

Whitespace-only changes.

inference_from_text.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
set -e
2+
set -u
3+
4+
ref_audio=$1
5+
text_path=$2
6+
ref_mp4=$3
7+
8+
pwd=$(pwd)
9+
echo "ref_audio: ${ref_audio}"
10+
echo "text_path: ${text_path}"
11+
echo "ref_mp4: ${ref_mp4}"
12+
echo "pwd: ${pwd}"
13+
14+
real_ref_audio=$(realpath ${ref_audio})
15+
real_text_path=$(realpath ${text_path})
16+
real_ref_mp4=$(realpath ${ref_mp4})
17+
18+
echo "real_ref_audio: ${real_ref_audio}"
19+
echo "real_text_path: ${real_text_path}"
20+
echo "real_ref_mp4: ${real_ref_mp4}"
21+
22+
# tts
23+
cd tts-fish-speech
24+
echo bash run.sh ${real_ref_audio} ${real_text_path}
25+
bash run.sh ${real_ref_audio} ${real_text_path}
26+
27+
# f2f
28+
cd ${pwd}
29+
mv tts-fish-speech/fake.wav example/fake.wav
30+
31+
python run.py --audio_path example/fake.wav --video_path ${ref_mp4}

inference_from_text0.sh

Whitespace-only changes.

0 commit comments

Comments
 (0)