Metadata-Version: 2.4
Name: f5-tts-th
Version: 1.0.9
Summary: F5-TTS: Text-to-Speech (TTS) ภาษาไทย — เครื่องมือสร้างเสียงพูดจากข้อความด้วยเทคนิค Flow Matching
Description-Content-Type: text/markdown
Requires-Dist: cached_path
Requires-Dist: jieba
Requires-Dist: librosa
Requires-Dist: matplotlib
Requires-Dist: numpy<=1.26.4
Requires-Dist: pydub
Requires-Dist: pypinyin
Requires-Dist: soundfile
Requires-Dist: torch>=2.0.0
Requires-Dist: torchaudio>=2.0.0
Requires-Dist: torchdiffeq
Requires-Dist: tqdm>=4.65.0
Requires-Dist: transformers
Requires-Dist: vocos
Requires-Dist: x_transformers>=1.31.14
Requires-Dist: pythainlp
Requires-Dist: python-crfsuite
Requires-Dist: ssg
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: summary

# F5-TTS-TH

Text-to-Speech (TTS) ภาษาไทย — เครื่องมือสร้างเสียงพูดจากข้อความด้วยเทคนิค Flow Matching ด้วยโมเดล F5-TTS

- 🔥 สถาปัตยกรรม: [F5-TTS](https://arxiv.org/abs/2410.06885)  

### ติดตั้ง

```
pip install f5-tts-th
```

 ### การใช้งาน

```
from f5_tts_th.tts import TTS
import soundfile as sf

tts = TTS(model="v1") 
# โมเดลมี 2 เวอร์ชัน 
# "v1" จะออกเสียงภาษาไทยได้ดีกว่า 
# "v2" จะลดข้อผิดพลาดการอ่านของคำ โดยใช้ IPA

wav = tts.infer(
    ref_audio="YOUR_AUDIO_PATH",
    ref_text="ได้รับข่าวคราวของเราที่จะหาที่มันเป็นไปที่จะจัดขึ้น.", 
    gen_text="สวัสดีครับ นี่คือเสียงพูดภาษาไทย.", 
    step=32, 
    cfg=2.0, 
    speed=1.0
)

sf.write("test.wav", wav, 24000)
```
