Library / SDK
KevinWang676/Bark-Voice-Cloning avatar
KevinWang676/Bark-Voice-Cloning

Bark Voice Cloning: A One-Click Hub for Open Source TTS and Voice Conversion

Bark Voice Cloning and Voice Cloning for Chinese Speech

2,945 stars413 forksJupyter NotebookMIT

At a glance

What is it?
KevinWang676/Bark-Voice-Cloning bundles a Gradio Web UI for Bark voice cloning with a separate Sambert pipeline for Chinese speech and a shelf of Colab notebooks for other models. It is a launcher, not a new model, and that distinction decides whether it fits your project.
Who is it for?
Adopt this repository if you want to try Bark voice cloning or Chinese Sambert cloning without assembling the pipelines yourself, and if a Colab notebook or a local Gradio UI is an acceptable interface. Do not adopt it if you need a supported library with a stable API, or if you are deploying to production: the Bark training path is labelled experimental, the release history shows no tagged versions, and the default .npz prompt path in app.py targets Colab.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 178 days ago.
What is it written in?
Mainly Jupyter Notebook, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • KevinWang676/Bark-Voice-Cloning2,945 ★ · -1
Star history
Repository2026-09-252026-11-24
KevinWang676/Bark-Voice-Cloning2.9k2.9k

-1 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What Bark Voice Cloning actually is, and who it is for

The name is narrower than the repository. The README describes it as a "one-click hub for leading open-source voice cloning, TTS, and voice conversion models", and it began as a Bark voice cloning project before growing into a collection. Two things sit inside it. The first is a working Bark stack: a Gradio Web UI in app.py with tabs for Clone Voice, TTS and Voice Conversion, backed by cloning/clonevoice.py, swap_voice.py and the bark/ package. The second is a Sambert workflow under sambert-ui/ that covers Chinese and bilingual personal voice cloning from data labeling through training to inference.

On top of those sit notebooks. Voice-related notebooks are grouped under notebooks/tts/ for TTS and voice cloning, and notebooks/vc/ for voice conversion, with the README stating that any notebook whose filename contains VC belongs to the second group. The collection covers GPT-SoVITS, XTTS, VALL-E X, F5-TTS, CosyVoice, OpenVoice, KNN-VC and NeuCoSVC, among others.

The audience is therefore split. Someone who wants to hear their own voice read a paragraph in Bark is served by app.py or by Bark_Voice_Cloning.ipynb. Someone who needs Chinese personal voice cloning with a training step is served by the Sambert path. Someone who wants to compare five TTS models in an afternoon is served by the notebook directory. What none of them get is a library to import into a larger application.

How the Bark path moves from audio to a cloned voice

The Bark pipeline in this repository has three stages, and the README names the file responsible for each.

Creating a prompt is the first stage. cloning/clonevoice.py runs HuBERT plus a tokenizer plus EnCodec and saves the result as an .npz file. That file is the voice. It is not a fine-tuned model, it is a conditioning artifact, which is why the whole cloning step takes seconds rather than hours and why a short reference clip is enough.

Text to audio is the second stage. The core API is bark/api.py, exposing generate_with_settings and semantic_to_waveform, and app.py wraps it as generate_text_to_speech. Bark splits generation into a semantic stage and a waveform stage, and the function names follow that split.

Voice conversion is the third stage, in swap_voice.py. It takes HuBERT tokens from an input recording and calls Bark's semantic_to_waveform with a history_prompt, so the words and timing come from the source audio while the timbre comes from the prompt. This is a different operation from cloning: cloning makes a reusable voice file, conversion applies one to existing speech.

Checkpoints arrive on first run. The README states that Bark checkpoints download into ./models/ via bark/generation.py, and that HuBERT and the tokenizer download into ./models/hubert/ via bark/hubert/hubert_manager.py. Generated audio goes to outputs/ by default, configurable through the output_folder_path key in config.yaml.

The training path exists but is marked experimental: training/training_prepare.py generates semantic tokens from text and synthesizes wav pairs, training/train.py prepares HuBERT-ready features and triggers tokenizer training through bark/hubert/customtokenizer.py, and training/data.py handles text sourcing and filtering. The README labels the whole group "Bark training utilities (experimental)", so treat it as a research path rather than a supported feature.

Installing the Bark Web UI and generating your first cloned line

The README gives a short local path. Python 3.10 or newer is recommended, and a GPU is recommended, though the README notes CPU works but is slow. Install the dependencies from the repository root:

bash
pip install -r requirements.txt

Then start the UI:

bash
python app.py

Gradio 3.33.0 is pinned in requirements.txt, so the interface you get is the one the project was built against. On first run, expect downloads: Bark checkpoints into ./models/ and HuBERT plus tokenizer into ./models/hubert/. Nothing appears in the UI until those finish.

There is a trap the README calls out explicitly. The Create Voice feature writes a .npz prompt file, and the default destination path in app.py is set for Colab, meaning it begins with /content/. Running locally, that path will not exist. The README's instruction is to update it to a valid path on your machine, suggesting something inside bark/assets/prompts/. If you skip this, prompt creation fails while everything else appears to work.

The Sambert path installs separately, from its own directory:

bash
cd sambert-ui
pip install -r requirements.txt
python app.py

That UI covers auto labeling, training and inference in one flow, and sambert-ui/README.md carries the details the root README does not. If you would rather not install anything, the README points at Sambert_UI.ipynb in the same directory as a Colab-friendly entrypoint.

The Colab-first design and where it breaks on a local machine

The repository's default assumption is Colab, and that assumption leaks. The prompt path in app.py is the clearest symptom, but it is not the only place where the notebook workflow and the local workflow diverge. The README describes most notebooks as "one-click Colab demos": open, run the cells, try the model. That is a genuinely useful design for evaluation and a poor one for anything that needs to run unattended.

The Dockerfile does not build this repository. It clones https://github.com/C0untFloyd/bark-gui, changes directory into it, runs pip install. and pip install -r requirements.txt, rewrites server_name in that project's config.yaml to 0.0.0.0, exposes port 7860 and starts python3 webui.py. The pyproject.toml in this repository also points its source URL at the same upstream project and names the package bark-ui-enhanced at version 0.7.0, crediting Suno Inc for the original Bark and Count Floyd as an author. So the container path and the packaging metadata describe the upstream Bark GUI, while the README, app.py, cloning/, swap_voice.py and sambert-ui/ describe this repository. Anyone reaching for the Dockerfile expecting a container of this project should read it first.

The other structural limitation is that this is a hub, not a maintained library. The repository has no published GitHub releases, so there is no version to pin and no changelog to read. The last push was on 2026-05-31, which is recent enough that the project is not abandoned, but a collection of notebooks that track other people's fast-moving models has a different maintenance shape from a library with a stable API. When GPT-SoVITS or CosyVoice changes, the notebook that wraps it is the thing that breaks, and the fix lives here.

Finally, requirements.txt carries a platform split for fairseq: the Linux and macOS line is fairseq from PyPI, while Windows pulls a prebuilt wheel from a GitHub release (fairseq-0.12.4-cp310-cp310-win_amd64.whl). The Windows wheel is built for CPython 3.10 specifically, which is consistent with the README's Python 3.10+ recommendation but means a 3.11 or 3.12 environment on Windows has no matching wheel in that line.

Bark voice cloning compared with GPT-SoVITS and XTTS

The honest comparison is inside the repository, because the notebooks are the alternative. If you want zero-shot cloning without a training run, Bark and XTTS both work from a short reference clip, and this repository gives you a notebook for each: Bark_Voice_Cloning.ipynb and XTTS_Colab.ipynb. The difference in approach is architectural. Bark generates through a semantic token stage followed by a waveform stage, which is why cloning here means saving a .npz prompt that conditions semantic_to_waveform rather than adjusting model weights. XTTS, as wrapped in its notebook, is a single TTS model with its own speaker conditioning.

GPT-SoVITS sits at the other end. The repository ships seven notebooks for it, including a training notebook (F5_TTS_Training.ipynb covers F5-TTS training separately). A training-based pipeline asks for more data and more time in exchange for a voice that is fitted rather than conditioned. If your reference audio is short or noisy, the Bark prompt route is the lower-effort option; if you need the voice to hold up across long passages, the training route is the one people reach for.

For Chinese specifically, the choice is between the Sambert path in sambert-ui/ and the CosyVoice or GPT-SoVITS notebooks. Sambert is the only one here with a labeling-to-training-to-inference UI built around it in this repository, and it is also the only one with a dedicated Sambert_Voice_Cloning_in_One_Click.ipynb. That concentration of tooling is the strongest argument for using this repository at all rather than going to each upstream project directly.

For voice conversion rather than cloning, KNN_VC.ipynb and NeuCoSVC.ipynb live under notebooks/vc/. KNN-VC converts by matching frames against a reference set rather than generating from a text-conditioned model, which makes it a different tool from swap_voice.py even though both change the speaker of existing audio.

Licence, upgrade cost and what a fork inherits

The repository is MIT licensed, and pyproject.toml declares the same licence for the bark-ui-enhanced package by pointing at the LICENSE file. MIT is permissive, so incorporating the code into another project is straightforward from a licensing standpoint.

What the licence does not settle is the provenance of everything the repository downloads. Bark checkpoints and HuBERT are fetched at runtime into ./models/ and ./models/hubert/, and the notebooks pull models from their own upstream projects. Those come with their own terms, and the README does not enumerate them. If you plan to use generated audio commercially, the licence of the model weights is the question to answer, and it is not answered here. This is a factual gap, not legal advice.

Upgrade cost follows from the structure. There is no released version to move between, so upgrading means pulling the branch and re-reading the notebooks you depend on. The pinned gradio==3.33.0 and gradio_client==0.2.7 in requirements.txt mean the UI will not silently pick up a newer Gradio, which is good for reproducibility and means a Gradio upgrade is a deliberate, tested change rather than something that happens on install. The fairseq line is the most fragile dependency: it is a platform-conditional requirement, and the Windows branch depends on a specific prebuilt wheel.

If you fork this for your own use, the maintenance you inherit is not the Bark code, which is stable. It is the notebook collection, which tracks projects that release frequently. Budget for that, not for the UI.

Editorial conclusion

Adopt this repository if you want to try Bark voice cloning or Chinese Sambert cloning without assembling the pipelines yourself, and if a Colab notebook or a local Gradio UI is an acceptable interface. Do not adopt it if you need a supported library with a stable API, or if you are deploying to production: the Bark training path is labelled experimental, the release history shows no tagged versions, and the default .npz prompt path in app.py targets Colab. Before you commit, open app.py and confirm the prompt output path matches your machine, check that requirements.txt resolves on your platform (the fairseq line differs between Windows and Linux), and read sambert-ui/README.md to see what the Chinese pipeline expects as input.

Frequently asked questions

Is voice cloning illegal?

The README does not address the legality of voice cloning. It describes the repository as a hub for open source voice cloning, TTS and voice conversion models and notes that Bark and HuBERT checkpoints are downloaded at runtime, but it does not state the terms attached to those weights or the rules for using cloned audio.

How much does voice cloning cost?

The repository itself is MIT licensed, and the README's install path is pip install -r requirements.txt followed by python app.py. The README does not state any price for the models or for running the notebooks, and it does not discuss hosting costs.

What is the best app for voice cloning?

The README does not rank tools. It presents this repository as a hub with a Gradio Web UI for Bark, a separate Sambert UI for Chinese and bilingual personal voice cloning, and notebooks for GPT-SoVITS, XTTS, VALL-E X, F5-TTS, CosyVoice, OpenVoice, KNN-VC and NeuCoSVC.

How to tell if a voice is cloned?

The README does not cover detection or spoof identification. It documents generation only: cloning/clonevoice.py produces a .npz prompt, bark/api.py exposes generate_with_settings and semantic_to_waveform, and swap_voice.py applies a prompt to existing audio.

Official sources

  1. Issues
  2. KevinWang676/Bark-Voice-Cloning on GitHub
  3. License: MIT
  4. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/kevinwang676-bark-voice-cloning.svg)](https://hysenlabs.com/projects/kevinwang676-bark-voice-cloning)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/kevinwang676-bark-voice-cloning.svg)](https://hysenlabs.com/projects/kevinwang676-bark-voice-cloning)

Was this useful?