VIZINTZOR commited on
Commit
c9fd22f
·
verified ·
1 Parent(s): 0543e2a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -3
README.md CHANGED
@@ -12,7 +12,7 @@ base_model:
12
 
13
  ### การใช้งาน
14
 
15
- Github : https://github.com/VYNCX/F5-TTS-THAI
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
- ใช้งานบน Gradio
29
 
30
  ```sh
31
- f5-tts_webui
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  ```