Update README.md
Browse files
README.md
CHANGED
|
@@ -12,7 +12,7 @@ base_model:
|
|
| 12 |
|
| 13 |
### การใช้งาน
|
| 14 |
|
| 15 |
-
Github
|
| 16 |
|
| 17 |
ติดตั้ง
|
| 18 |
|
|
@@ -25,8 +25,22 @@ pip install git+https://github.com/VYNCX/F5-TTS-THAI.git
|
|
| 25 |
pip install torch==2.3.0+cu118 torchaudio==2.3.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
|
| 26 |
```
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
```sh
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
```
|
|
|
|
| 12 |
|
| 13 |
### การใช้งาน
|
| 14 |
|
| 15 |
+
[Github](https://github.com/VYNCX/F5-TTS-THAI)
|
| 16 |
|
| 17 |
ติดตั้ง
|
| 18 |
|
|
|
|
| 25 |
pip install torch==2.3.0+cu118 torchaudio==2.3.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
|
| 26 |
```
|
| 27 |
|
| 28 |
+
ใช้งาน
|
| 29 |
|
| 30 |
```sh
|
| 31 |
+
from f5_tts_th.tts import TTS
|
| 32 |
+
import soundfile as sf
|
| 33 |
+
|
| 34 |
+
tts = TTS(model="v2")
|
| 35 |
+
|
| 36 |
+
wav = tts.infer(
|
| 37 |
+
ref_audio="YOUR_AUDIO_PATH",
|
| 38 |
+
ref_text="ได้รับข่าวคราวของเราที่จะหาที่มันเป็นไปที่จะจัดขึ้น.",
|
| 39 |
+
gen_text="สวัสดีครับ นี่คือเสียงพูดภาษาไทย.",
|
| 40 |
+
step=32,
|
| 41 |
+
cfg=2.0,
|
| 42 |
+
speed=1.0
|
| 43 |
+
)
|
| 44 |
+
|
| 45 |
+
sf.write("test.wav", wav, 24000)
|
| 46 |
```
|