F5-TTS: Text-to-Speech (TTS) ภาษาไทย — เครื่องมือสร้างเสียงพูดจากข้อความด้วยเทคนิค Flow Matching
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
f5_tts_th-1.0.4.tar.gz
(6.4 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
f5_tts_th-1.0.4-py3-none-any.whl
(13.2 MB
view details)
File details
Details for the file f5_tts_th-1.0.4.tar.gz.
File metadata
- Download URL: f5_tts_th-1.0.4.tar.gz
- Upload date:
- Size: 6.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48c300aca0351273db5649950be54bddeb8a8bb8f7c3815dcfc94ad67b64aae9
|
|
| MD5 |
60ad12e82ce33a5cf3012d4937d73c35
|
|
| BLAKE2b-256 |
00de660617c5a78ddda3015e267859c4e55c758451e8c857f8110cb0b02b7b12
|
File details
Details for the file f5_tts_th-1.0.4-py3-none-any.whl.
File metadata
- Download URL: f5_tts_th-1.0.4-py3-none-any.whl
- Upload date:
- Size: 13.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40316e005cc9dc6b491f13b9429b181ccf0713be8c92bc766954211b544f6344
|
|
| MD5 |
62be885e87142b11a243222a3625842a
|
|
| BLAKE2b-256 |
5e715bb4e8d5f26c2ab6a7c8bf0dd8a69783c23bf2566a22247fcfac82fa3a4a
|