File size: 1,076 Bytes
b6a6550 7d3ae58 b6a6550 526549b 4717fd3 b6a6550 4717fd3 b6a6550 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
---
license: mit
language:
- th
pipeline_tag: text-to-speech
---
# Vachana TTS
VachanaTTS คือโมเดล **Text-to-Speech (TTS)** สำหรับภาษาไทย
สร้างเสียงพูดจากข้อความอย่างรวดเร็ว รองรับการใช้งานทั้ง **CPU** และ **GPU** ผ่าน `onnxruntime`
- 🔥 สถาปัตยกรรม: [VITS](https://github.com/jaywalnut310/vits)
- ⚡ โค้ดหลักและการเทรน: [PiperTTS](https://github.com/OHF-Voice/piper1-gpl)
## 🚀 เริ่มต้นใช้งาน
### ติดตั้ง
```
pip install vachanatts
```
### การใช้งาน
```
from vachanatts import TTS
text = "สวัสดีครับ/ค่ะ นี่คือเสียงพูดภาษาไทย"
# เสียงพูดที่รองรับ th_f_1, th_m_1, th_f_2
TTS(text,
voice="th_f_1",
output="output.wav",
volume=1.0,
speed=1.0
)
```
|