Run this model with HF Jobs
Run camenduru/XTTS-v1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/camenduru/XTTS-v1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/camenduru/XTTS-v1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use camenduru/XTTS-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use camenduru/XTTS-v1 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("camenduru/XTTS-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
thanks to coqui ❤
Browse filesFiles changed (5)
- LICENSEAdded+84
- README.mdAdded+86
- config.jsonAdded+158
- model.pthAdded+3
- vocab.jsonAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384# Coqui Public Model License 1.0.0https://coqui.ai/cpml.txt
This license allows only non-commercial use of a machine learning model and its outputs.
## Acceptance
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
## Licenses
The licensor grants you a copyright license to do everything you might do with the model that would otherwise infringe the licensor's copyright in it, for any non-commercial purpose. The licensor grants you a patent license that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the model in the form provided by the licensor, for any non-commercial purpose.
## Non-commercial Purpose
Non-commercial purposes include any of the following uses of the model or its output, but only so far as you do not receive any direct or indirect payment arising from the use of the model or its output.
### Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religiousobservance.
### Use by commercial or for-profit entities for testing, evaluation, or non-commercial research and development. Use of the model to train other models for commercial use is not a non-commercial purpose.
### Use by any charitable organization for charitable purposes, or for testing or evaluation. Use for revenue-generating activity, including projects directly funded by government grants, is not a non-commercial purpose.
## Notices
You must ensure that anyone who gets a copy of any part of the model, or any modification of the model, or their output, from you also gets a copy of these terms or the URL for them above.
## No Other Rights
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not implyany other licenses.
## Patent Defense
If you make any written claim that the model infringes or contributes to infringement of any patent, your licenses for the model granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
## Violations
The first time you are notified in writing that you have violated any of these terms, or done anything with the model or its output that is not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 30 days of receiving notice. Otherwise, all your licensesend immediately.
## No Liability
***As far as the law allows, the model and its output come as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the model or its output, under any kind of legal claim. If this provision is not enforceable in your jurisdiction, your licenses are void.***
## Definitions
The **licensor** is the individual or entity offering these terms, and the **model** is the model the licensor makes available under these terms, including any documentation or similar information about the model.
**You** refers to the individual or entity agreeing to these terms.
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
**Your licenses** are all the licenses granted to you under these terms.
**Use** means anything you do with the model or its output requiring one of your licenses.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586---license: other---
# ⓍTTSⓍTTS is a Voice generation model that lets you clone voices into different languages by using just a quick 3-second audio clip. Built on Tortoise,ⓍTTS has important model changes that make cross-language voice cloning and multi-lingual speech generation super easy.There is no need for an excessive amount of training data that spans countless hours.
This is the same model that powers [Coqui Studio](https://coqui.ai/), and [Coqui API](https://docs.coqui.ai/docs), however we applya few tricks to make it faster and support streaming inference.
### Features- Supports 13 languages. - Voice cloning with just a 3-second audio clip.- Emotion and style transfer by cloning. - Cross-language voice cloning.- Multi-lingual speech generation.- 24khz sampling rate.
### LanguagesAs of now, XTTS-v1 supports 13 languages: **English, Spanish, French, German, Italian, Portuguese,Polish, Turkish, Russian, Dutch, Czech, Arabic, and Chinese**.
Stay tuned as we continue to add support for more languages. If you have any language requests, please feel free to reach out!
### CodeThe current implementation only supports inference.
### LicenseThis model is licensed under [Coqui Public Model License](https://coqui.ai/cpml). There's a lot that goes into a license for generative models, and you can read more of [the origin story of CPML here](https://coqui.ai/blog/tts/cpml).
### ContactCome and join in our 🐸Community. We're active on [Discord](https://discord.gg/fBC58unbKE) and [Twitter](https://twitter.com/coqui_ai).You can also mail us at info@coqui.ai.
Using 🐸TTS API:
```pythonfrom TTS.api import TTStts = TTS("tts_models/multilingual/multi-dataset/xtts_v1", gpu=True)
# generate speech by cloning a voice using default settingstts.tts_to_file(text="It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.", file_path="output.wav", speaker_wav="/path/to/target/speaker.wav", language="en")
# generate speech by cloning a voice using custom settingstts.tts_to_file(text="It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.", file_path="output.wav", speaker_wav="/path/to/target/speaker.wav", language="en", decoder_iterations=30)```
Using 🐸TTS Command line:
```console tts --model_name tts_models/multilingual/multi-dataset/xtts_v1 \ --text "Bugün okula gitmek istemiyorum." \ --speaker_wav /path/to/target/speaker.wav \ --language_idx tr \ --use_cuda true```
Using model directly:
```pythonfrom TTS.tts.configs.xtts_config import XttsConfigfrom TTS.tts.models.xtts import Xtts
config = XttsConfig()config.load_json("/path/to/xtts/config.json")model = Xtts.init_from_config(config)model.load_checkpoint(config, checkpoint_dir="/path/to/xtts/", eval=True)model.cuda()
outputs = model.synthesize( "It took me quite a long time to develop a voice and now that I have it I am not going to be silent.", config, speaker_wav="/data/TTS-public/_refclips/3.wav", gpt_cond_len=3, language="en",)```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158{ "output_path": "output", "logger_uri": null, "run_name": "run", "project_name": null, "run_description": "\ud83d\udc38Coqui trainer run.", "print_step": 25, "plot_step": 100, "model_param_stats": false, "wandb_entity": null, "dashboard_logger": "tensorboard", "save_on_interrupt": true, "log_model_step": null, "save_step": 10000, "save_n_checkpoints": 5, "save_checkpoints": true, "save_all_best": false, "save_best_after": 10000, "target_loss": null, "print_eval": false, "test_delay_epochs": 0, "run_eval": true, "run_eval_steps": null, "distributed_backend": "nccl", "distributed_url": "tcp://localhost:54321", "mixed_precision": false, "precision": "fp16", "epochs": 1000, "batch_size": 32, "eval_batch_size": 16, "grad_clip": 0.0, "scheduler_after_epoch": true, "lr": 0.001, "optimizer": "radam", "optimizer_params": null, "lr_scheduler": null, "lr_scheduler_params": {}, "use_grad_scaler": false, "allow_tf32": false, "cudnn_enable": true, "cudnn_deterministic": false, "cudnn_benchmark": false, "training_seed": 54321, "model": "xtts", "num_loader_workers": 0, "num_eval_loader_workers": 0, "use_noise_augment": false, "audio": { "sample_rate": 22050, "diffusion_sample_rate": 24000, "output_sample_rate": 24000 }, "use_phonemes": false, "phonemizer": null, "phoneme_language": null, "compute_input_seq_cache": false, "text_cleaner": null, "enable_eos_bos_chars": false, "test_sentences_file": "", "phoneme_cache_path": null, "characters": null, "add_blank": false, "batch_group_size": 0, "loss_masking": null, "min_audio_len": 1, "max_audio_len": Infinity, "min_text_len": 1, "max_text_len": Infinity, "compute_f0": false, "compute_energy": false, "compute_linear_spec": false, "precompute_num_workers": 0, "start_by_longest": false, "shuffle": false, "drop_last": false, "datasets": [ { "formatter": "", "dataset_name": "", "path": "", "meta_file_train": "", "ignored_speakers": null, "language": "", "phonemizer": "", "meta_file_val": "", "meta_file_attn_mask": "" } ], "test_sentences": [], "eval_split_max_size": null, "eval_split_size": 0.01, "use_speaker_weighted_sampler": false, "speaker_weighted_sampler_alpha": 1.0, "use_language_weighted_sampler": false, "language_weighted_sampler_alpha": 1.0, "use_length_weighted_sampler": false, "length_weighted_sampler_alpha": 1.0, "model_args": { "gpt_batch_size": 1, "enable_redaction": false, "lazy_load": true, "kv_cache": true, "gpt_checkpoint": null, "clvp_checkpoint": null, "decoder_checkpoint": null, "num_chars": 255, "tokenizer_file": "", "gpt_max_audio_tokens": 605, "gpt_max_text_tokens": 402, "gpt_max_prompt_tokens": 70, "gpt_layers": 30, "gpt_n_model_channels": 1024, "gpt_n_heads": 16, "gpt_number_text_tokens": 5024, "gpt_start_text_token": 261, "gpt_stop_text_token": 0, "gpt_num_audio_tokens": 8194, "gpt_start_audio_token": 8192, "gpt_stop_audio_token": 8193, "diff_model_channels": 1024, "diff_num_layers": 10, "diff_in_channels": 100, "diff_out_channels": 200, "diff_in_latent_channels": 1024, "diff_in_tokens": 8193, "diff_dropout": 0, "diff_use_fp16": false, "diff_num_heads": 16, "diff_layer_drop": 0, "diff_unconditioned_percentage": 0, "duration_const": 102400 }, "model_dir": null, "languages": [ "en", "es", "fr", "de", "it", "pt", "pl", "tr", "ru", "nl", "cs", "ar", "zh-cn" ], "temperature": 0.2, "length_penalty": 1.0, "repetition_penalty": 2.0, "top_p": 0.8, "cond_free_k": 2.0, "diffusion_temperature": 1.0, "num_gpt_outputs": 16, "decoder_iterations": 30, "decoder_sampler": "ddim"}123version https://git-lfs.github.com/spec/v1oid sha256:007024dd42666fedbb448b1f6ff90a7064768aaf79aa1c7e27cbc4f043c7183esize 2988819485LICENSEAdded+84
README.mdAdded+86
config.jsonAdded+158
model.pthAdded+3
vocab.jsonAdded