Skip to main content

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-weights-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}
}

Release files for ttsdb_maskgct 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ttsdb_maskgct 0.1.5
File Interpreter ABI Platform
ttsdb_maskgct-0.1.5-py3-none-any.whl Python 3 none any Details

Release files / ttsdb_maskgct-0.1.5-py3-none-any.whl

Download URL ttsdb_maskgct-0.1.5-py3-none-any.whl
Size 41.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
264e824b573b7090132aac0001b85f50125cc5b4cb8d8ab515906490a477812e
BLAKE2b-256 checksum
How to use checksums
3842dcf0215fa53fd10e6fcd2606c51d1df605f2656b8c648409f05c63e87038
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page