Skip to main content

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.9.tar.gz (6.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

f5_tts_th-1.0.9-py3-none-any.whl (6.6 MB view details)

Uploaded Python 3

File details

Details for the file f5_tts_th-1.0.9.tar.gz.

File metadata

  • Download URL: f5_tts_th-1.0.9.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

Hashes for f5_tts_th-1.0.9.tar.gz
Algorithm Hash digest
SHA256 6e2451c307b5b7e7e6f78237bf9d42e481b94ead46dc96ed514396b7336c30b0
MD5 ebab746f0fd8898fdd79818a8a7b8525
BLAKE2b-256 2dae4c06570f7d4ffdee1d79433a9a213674b49aa07a1a45e1781d126da4e842

See more details on using hashes here.

File details

Details for the file f5_tts_th-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: f5_tts_th-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for f5_tts_th-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 06b7eff3c9812d12e2b35aaff7ba57d036e255750a29a722407565ae53b19332
MD5 ffd6746d1e13a349b2c3bf9031a36085
BLAKE2b-256 37f6993b6dd14ee83e42d3d5fa467b39972e61ab559047ee2cf14013b3f237c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page