Skip to main content
Repo·github.com
text-to-audiospeech-synthesismusic-generationopen-sourcesuno-aitext-to-speechaudio generationmachine learningsuno aibark

Bark

Generate realistic speech, music, and sound effects from text using Bark, Suno AI's open-source text-to-audio model.

beginner30-60 minutes4 steps
The play
  1. Install Bark
    Install the Bark library using pip. Make sure you have Python installed and configured.
  2. Download and Load Models
    Download the necessary models. This will download several hundred MB of data, so ensure you have a stable internet connection. Then load the model.
  3. Generate Audio
    Generate audio from text. You can specify a speaker using the `history_prompt` parameter. If you don't specify a speaker, a random one will be used.
  4. Specify a Speaker
    Use a pre-defined speaker or create your own. Bark comes with a few built-in speaker prompts. You can also create your own by recording a short audio clip of someone speaking.
Starter code
Start by installing the Bark library and downloading the necessary models. Then, generate audio from a simple text prompt to get familiar with the basic functionality.
Source
Bark — Action Pack