> Notice: Bark is Suno's open-source text-to-speech+ model. If you are looking f
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
🐶 Bark
> 🔗 Examples • Suno Studio Waitlist • Updates • How to Use • Installation • FAQ
[//]: (vertical spaces around image)
Bark is a transformer-based text-to-audio model created by Suno. Bark can generate highly realistic, multilingual speech as well as other audio - including music, background noise and simple sound effects. The model can also produce nonverbal communications like laughing, sighing and crying. To support the research community, we are providing access to pretrained model checkpoints, which are ready for inference and available for commercial use.
⚠ Disclaimer
Bark was developed for research purposes. It is not a conventional text-to-speech model but instead a fully generative text-to-audio model, which can deviate in unexpected ways from provided prompts. Suno does not take responsibility for any output generated. Use at your own risk, and please act responsibly.
📖 Quick Index
* 🚀 Updates
* 💻 Installation
* 🐍 Usage
* 🌀 Live Examples
* ❓ FAQ
🎧 Demos
🚀 Updates
**2023.05.01**
- ©️ Bark is now licensed under the MIT License, meaning it's now available for commercial use!
- ⚡ 2x speed-up on GPU. 10x speed-up on CPU. We also added an option for a smaller version of Bark, which offers additional speed-up with the trade-off of slightly lower quality.
- 📕 Long-form generation, voice consistency enhancements and other examples are now documented in a new notebooks section.
- 👥 We created a voice prompt library. We hope this resource helps you find useful prompts for your use cases! You can also join us on Discord, where the community actively shares useful prompts in the **#audio-prompts** channel.
- 💬 Growing community support and access to new features here:
- 💾 You can now use Bark with GPUs that have low VRAM (
🪑 Basics
pizza1.webm
🌎 Foreign Language
Bark supports various languages out-of-the-box and automatically determines language from input text. When prompted with code-switched text, Bark will attempt to employ the native accent for the respective languages. English quality is best for the time being, and we expect other languages to further improve with scaling.
suno_korean.webm
*Note: since Bark recognizes languages automatically from input text, it is possible to use, for example, a german history prompt with english text. This usually leads to english audio with a german accent.*
suno_german_accent.webm
🎶 Music
Bark can generate all types of audio, and, in principle, doesn't see a difference between speech and music. Sometimes Bark chooses to generate text as music, but you can help it out by adding music notes around your lyrics.
lion.webm
🎤 Voice Presets
Bark supports 100+ speaker presets across supported languages. You can browse the library of supported voice presets HERE, or in the code. The community also often shares presets in Discord.
> Bark tries to match the tone, pitch, emotion and prosody of a given preset, but does not currently support custom voice cloning. The model also attempts to preserve music, ambient noise, etc.
sloth.webm
📃 Generating Longer Audio
By default, generate_audio works well with around 13 seconds of spoken text. For an example of how to do long-form generation, see 👉 **Notebook** 👈
Click to toggle example long-form generations (from the example notebook)
dialog.webm
longform_advanced.webm
longform_basic.webm
Command line
💻 Installation
*‼️ CAUTION ‼️ Do NOT use pip install bark. It installs a different package, which is not managed by Suno.*
or
🤗 Transformers Usage
Bark is available in the 🤗 Transformers library from version 4.31.0 onwards, requiring minimal dependencies
and additional packages. Steps to get started: