VIZINTZOR commited on
Commit
af023c7
·
verified ·
1 Parent(s): cc815ef

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -19
README.md CHANGED
@@ -36,38 +36,35 @@ Github : https://github.com/SWivid/F5-TTS
36
 
37
  ### การใช้งาน
38
 
39
- Github : https://github.com/VYNCX/F5-TTS-THAI
40
 
41
  ติดตั้ง
42
 
43
  ```sh
44
- git clone https://github.com/VYNCX/F5-TTS-THAI.git
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.3.0+cu118 torchaudio==2.3.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
50
  ```
51
 
52
- ใช้งานบน Gradio
53
 
54
  ```sh
55
- f5-tts_webui
56
- ```
57
 
58
- ### ฝึกอบรม และ Finetune
59
- ใช้งานบน Google Colab [Finetune](https://colab.research.google.com/drive/1jwzw4Jn1qF8-F0o3TND68hLHdIqqgYEe?usp=sharing) หรือ
60
 
61
- - ติดตั้ง
 
 
 
 
 
 
 
62
 
63
- ```sh
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
  ### ตัวอย่างเสียง