Update README.md
Browse files
README.md
CHANGED
|
@@ -36,38 +36,35 @@ Github : https://github.com/SWivid/F5-TTS
|
|
| 36 |
|
| 37 |
### การใช้งาน
|
| 38 |
|
| 39 |
-
Github
|
| 40 |
|
| 41 |
ติดตั้ง
|
| 42 |
|
| 43 |
```sh
|
| 44 |
-
|
| 45 |
-
cd F5-TTS-THAI
|
| 46 |
-
pip install git+https://github.com/VYNCX/F5-TTS-THAI.git
|
| 47 |
|
| 48 |
#จำเป็นต้องติดตั้งเพื่อใช้งานได้มีประสิทธิภาพกับ GPU
|
| 49 |
-
pip install torch==2.
|
| 50 |
```
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
```sh
|
| 55 |
-
|
| 56 |
-
|
| 57 |
|
| 58 |
-
|
| 59 |
-
ใช้งานบน Google Colab [Finetune](https://colab.research.google.com/drive/1jwzw4Jn1qF8-F0o3TND68hLHdIqqgYEe?usp=sharing) หรือ
|
| 60 |
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
-
|
| 64 |
-
cd F5-TTS-THAI
|
| 65 |
-
pip install -e .
|
| 66 |
-
```
|
| 67 |
-
|
| 68 |
-
- เปิด Gradio
|
| 69 |
-
```sh
|
| 70 |
-
f5-tts_finetune-gradio
|
| 71 |
```
|
| 72 |
|
| 73 |
### ตัวอย่างเสียง
|
|
|
|
| 36 |
|
| 37 |
### การใช้งาน
|
| 38 |
|
| 39 |
+
[Github](https://github.com/VYNCX/F5-TTS-THAI)
|
| 40 |
|
| 41 |
ติดตั้ง
|
| 42 |
|
| 43 |
```sh
|
| 44 |
+
pip install f5-tts-th
|
|
|
|
|
|
|
| 45 |
|
| 46 |
#จำเป็นต้องติดตั้งเพื่อใช้งานได้มีประสิทธิภาพกับ GPU
|
| 47 |
+
pip install torch==2.4.0+cu124 torchaudio==2.4.0+cu124 --extra-index-url https://download.pytorch.org/whl/cu124
|
| 48 |
```
|
| 49 |
|
| 50 |
+
ใช้งาน
|
| 51 |
|
| 52 |
```sh
|
| 53 |
+
from f5_tts_th.tts import TTS
|
| 54 |
+
import soundfile as sf
|
| 55 |
|
| 56 |
+
tts = TTS(model="v1")
|
|
|
|
| 57 |
|
| 58 |
+
wav = tts.infer(
|
| 59 |
+
ref_audio="YOUR_AUDIO_PATH",
|
| 60 |
+
ref_text="ได้รับข่าวคราวของเราที่จะหาที่มันเป็นไปที่จะจัดขึ้น.",
|
| 61 |
+
gen_text="สวัสดีครับ นี่คือเสียงพูดภาษาไทย.",
|
| 62 |
+
step=32,
|
| 63 |
+
cfg=2.0,
|
| 64 |
+
speed=1.0
|
| 65 |
+
)
|
| 66 |
|
| 67 |
+
sf.write("test.wav", wav, 24000)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
```
|
| 69 |
|
| 70 |
### ตัวอย่างเสียง
|