Bark is a transformer based text-to-audio model that can generate speech and miscellaneous audio i.e. background noise / music.
This is a port of Suno's Bark model in Apple's ML Framework, MLX. The intention of the port is to explore the potential in making fast on-device TTS inference possible.
1# Setup
2pip install transformers huggingface_hub hf_transfer
3git clone https://github.com/j-csc/mlx_bark
4cd mlx_bark
5pip install -r requirements.txt
6
7# Download model
8export HF_HUB_ENABLE_HF_TRANSFER=1
9huggingface-cli download --local-dir-use-symlinks False --local-dir weights/ mlx-community/mlx_bark
10
11# Run example (large model)
12python model.py --text="Hello world!" --path weights/ --model large
The rest of the model card was copied from
the original Bark repository
The following is additional information about the models released here.
Bark is a series of three transformer models that turn text into audio.
We anticipate that this model's text to audio capabilities can be used to improve accessbility tools in a variety of languages.
While we hope that this release will enable users to express their creativity and build applications that are a force
for good, we acknowledge that any text to audio model has the potential for dual use. While it is not straightforward
to voice clone known people with Bark, it can still be used for nefarious purposes. To further reduce the chances of unintended use of Bark,
we also release a simple classifier to detect Bark-generated audio with high accuracy (see notebooks section of the main repository).