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.5.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.5-py3-none-any.whl (13.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: f5_tts_th-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 1e976401c68e7b7e9e341a60c3b147d8cc0fc7ae8d2cf6ed0d03cf695fcb0df4
MD5 9a157f5f3f90f130bf48deb5e946e3a7
BLAKE2b-256 6c2883eb3878ec656df340a9622f7bc2c132a824f4d85f001569cd726673aff7

See more details on using hashes here.

File details

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

File metadata

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

Hashes for f5_tts_th-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 843872bb9ba38b300d820d3d0b413a67d50865fe2ebaf2a4ab26daf7ab11debc
MD5 cf08a1e30cd708f57e7d39fea58f8feb
BLAKE2b-256 06499c590792db48a4948abbf16cd7d58733b0f2d91c8f6952779216abc987ca

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