F5-TTS-TH
Text-to-Speech (TTS) ภาษาไทย — เครื่องมือสร้างเสียงพูดจากข้อความด้วยเทคนิค Flow Matching ด้วยโมเดล F5-TTS
- 🔥 สถาปัตยกรรม: F5-TTS
ติดตั้ง
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)
Metadata
Release files for f5-tts-th 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| f5_tts_th-1.0.9.tar.gz | 6.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| f5_tts_th-1.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 MB
Release files / f5_tts_th-1.0.9.tar.gz
| Download URL | f5_tts_th-1.0.9.tar.gz |
|---|---|
| Size | 6.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e2451c307b5b7e7e6f78237bf9d42e481b94ead46dc96ed514396b7336c30b0
|
|
BLAKE2b-256 checksum How to use checksums |
2dae4c06570f7d4ffdee1d79433a9a213674b49aa07a1a45e1781d126da4e842
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Release files / f5_tts_th-1.0.9-py3-none-any.whl
| Download URL | f5_tts_th-1.0.9-py3-none-any.whl |
|---|---|
| Size | 6.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06b7eff3c9812d12e2b35aaff7ba57d036e255750a29a722407565ae53b19332
|
|
BLAKE2b-256 checksum How to use checksums |
37f6993b6dd14ee83e42d3d5fa467b39972e61ab559047ee2cf14013b3f237c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|