Skip to main content

VaniraTTS: Text-to-Speech ภาษาไทย รวดเร็วและใช้งานง่าย

Project description

Vanira TTS

VaniraTTS โมเดล Text-to-Speech (TTS) สำหรับภาษาไทย
สร้างเสียงพูดจากข้อความอย่างรวดเร็ว รองรับการใช้งานทั้ง CPU และ GPU ผ่าน onnxruntime

🚀 เริ่มต้นใช้งาน

ติดตั้ง

pip install vaniratts

การใช้งาน

from VaniraTTS import VaniraTTS

tts = VaniraTTS()
text = "สวัสดีครับ/ค่ะ นี่คือเสียงพูดภาษาไทย"

# เสียงพูดที่รองรับ 
# - 1: เสียงผู้หญิง 1
# - 2: เสียงผู้หญิง 2
# - 3: เสียงผู้ชาย 1
# - 4: เสียงผู้ชาย 2

tts.infer(text,
    speaker=1, # 1-4
    output="output.wav",
    volume=1.0,
    speed=1.0
)

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

vaniratts-0.0.3.tar.gz (118.3 kB view details)

Uploaded Source

Built Distribution

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

vaniratts-0.0.3-py3-none-any.whl (122.1 kB view details)

Uploaded Python 3

File details

Details for the file vaniratts-0.0.3.tar.gz.

File metadata

  • Download URL: vaniratts-0.0.3.tar.gz
  • Upload date:
  • Size: 118.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for vaniratts-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ac3f8d6144c268d510a4dc2057f855af7c70e5e0e522baaf24dcc2ee851dfac9
MD5 8ab8f009c68d2e58c3122cd2d13a118c
BLAKE2b-256 51da60dbb75264ead4ec220a858dc2375eb62a74a8ab5e958246eb1e285afff2

See more details on using hashes here.

File details

Details for the file vaniratts-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: vaniratts-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 122.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for vaniratts-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b49b9eafef7d60f32059375a4be24531f62c88bb50a6e0fd9cb5fc9ba2bdeeba
MD5 78d296b6a793660b43a41fbffceebbdc
BLAKE2b-256 7969d98a960691739afebed4193b738be9adf2b0a413e624b1aa55c92956b15e

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