Skip to main content

MaskGCT model for TTSDB

Project description

MaskGCT

MaskGCT is a zero-shot text-to-speech model using masked generative codec transformer from Amphion.

Installation

cd models/maskgct
just setup maskgct

Usage

from ttsdb_maskgct import MaskGCT

model = MaskGCT(model_id="ttsds/maskgct")
audio, sr = model.synthesize(
    text="Hello, world!",
    reference_audio="path/to/reference.wav",
    text_reference="Text spoken in the reference audio.",
    language="en"
)

Audio Examples

Generated audio samples from integration tests:

Language Text Audio
English "With tenure, Suzie'd have all the more leisure for yachting, but her publications are no good." audio_examples/en_test_001.wav
Chinese "視野無限廣,窗外有藍天" audio_examples/zh_test_001.wav

To regenerate examples, run:

just hf prepare maskgct  # Download weights first
just test-integration maskgct

Supported Languages

  • English (en)
  • Chinese (zh)
  • Korean (ko)
  • Japanese (ja)
  • French (fr)
  • German (de)

Citation

@article{wang2024maskgct,
  title={MaskGCT: Zero-Shot Text-to-Speech with Masked Generative Codec Transformer},
  author={Wang, Yuancheng and Zhan, Haoyue and Liu, Liwei and Zeng, Ruihong and Guo, Haotian and Zheng, Jiachen and Zhang, Qiang and Zhang, Xueyao and Zhang, Shunsi and Wu, Zhizheng},
  journal={arXiv preprint arXiv:2409.00750},
  year={2024}
}

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

ttsdb_maskgct-0.1.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

ttsdb_maskgct-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file ttsdb_maskgct-0.1.1.tar.gz.

File metadata

  • Download URL: ttsdb_maskgct-0.1.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for ttsdb_maskgct-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b1a61e37a0e87c336ff4253b35bbbd7124c020f72648abc6ccae72b2f136e943
MD5 b539f9ba180cff40a6e072d448c52571
BLAKE2b-256 ef8d0c90ca517dfbbdcefc50b082c453f24a797ec2d64f3d8127bb07472e6838

See more details on using hashes here.

File details

Details for the file ttsdb_maskgct-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ttsdb_maskgct-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91c7cc6186c7736277b64307cfb7592dcdc86845dc7814db6ea63fc8fc32bfde
MD5 2e1ba29091312eef2f5e43d6a90f1a34
BLAKE2b-256 2e4e64d7171e76326479135c4d4e6972b95a43ebc2302d94c135fdcab62e6fa5

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