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}
}
Metadata
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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ttsdb_maskgct-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for ttsdb_maskgct-0.1.5-py3-none-any.whl |
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
|
Security for ttsdb_maskgct 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.