[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-1301":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":19,"lastSyncTime":29,"discoverSource":30},1301,"bark","suno-ai\u002Fbark","suno-ai","🔊 Text-Prompted Generative Audio Model","",null,"Jupyter Notebook",39149,4683,333,236,0,9,48,2,45,"MIT License",false,"main",true,[],"2026-06-12 02:00:26","> Notice: Bark is Suno's open-source text-to-speech+ model. If you are looking for our text-to-music models, please visit us on our [web page](https:\u002F\u002Fsuno.ai) and join our community on [Discord](https:\u002F\u002Fsuno.ai\u002Fdiscord). \n\n     \n# 🐶 Bark\n\n[![](https:\u002F\u002Fdcbadge.vercel.app\u002Fapi\u002Fserver\u002FJ2B2vsjKuE?style=flat&compact=True)](https:\u002F\u002Fsuno.ai\u002Fdiscord)\n[![Twitter](https:\u002F\u002Fimg.shields.io\u002Ftwitter\u002Furl\u002Fhttps\u002Ftwitter.com\u002FFM.svg?style=social&label=@suno_ai_)](https:\u002F\u002Ftwitter.com\u002Fsuno_ai_)\n\n> 🔗 [Examples](https:\u002F\u002Fsuno.ai\u002Fexamples\u002Fbark-v0) • [Suno Studio Waitlist](https:\u002F\u002Fsuno-ai.typeform.com\u002Fsuno-studio) • [Updates](#-updates) • [How to Use](#-usage-in-python) • [Installation](#-installation) • [FAQ](#-faq)\n\n[\u002F\u002F]: \u003Cbr> (vertical spaces around image)\n\u003Cbr>\n\u003Cp align=\"center\">\n\u003Cimg src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F5068315\u002F235310676-a4b3b511-90ec-4edf-8153-7ccf14905d73.png\" width=\"500\">\u003C\u002Fimg>\n\u003C\u002Fp>\n\u003Cbr>\n\nBark is a transformer-based text-to-audio model created by [Suno](https:\u002F\u002Fsuno.ai). 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.\n\n## ⚠ Disclaimer\nBark 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.\n\n## 📖 Quick Index\n* [🚀 Updates](#-updates)\n* [💻 Installation](#-installation)\n* [🐍 Usage](#-usage-in-python)\n* [🌀 Live Examples](https:\u002F\u002Fsuno.ai\u002Fexamples\u002Fbark-v0)\n* [❓ FAQ](#-faq)\n\n## 🎧 Demos  \n\n[![Open in Spaces](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F🤗-Open%20in%20Spaces-blue.svg)](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Fsuno\u002Fbark)\n[![Open on Replicate](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F®️-Open%20on%20Replicate-blue.svg)](https:\u002F\u002Freplicate.com\u002Fsuno-ai\u002Fbark)\n[![Open In Colab](https:\u002F\u002Fcolab.research.google.com\u002Fassets\u002Fcolab-badge.svg)](https:\u002F\u002Fcolab.research.google.com\u002Fdrive\u002F1eJfA2XUa-mXwdMy7DoYKVYHI1iTd9Vkt?usp=sharing)\n\n## 🚀 Updates\n\n**2023.05.01**\n- ©️ Bark is now licensed under the MIT License, meaning it's now available for commercial use!  \n- ⚡ 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. \n- 📕 [Long-form generation](notebooks\u002Flong_form_generation.ipynb), voice consistency enhancements and other examples are now documented in a new [notebooks](.\u002Fnotebooks) section.\n- 👥 We created a [voice prompt library](https:\u002F\u002Fsuno-ai.notion.site\u002F8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c). We hope this resource helps you find useful prompts for your use cases! You can also join us on [Discord](https:\u002F\u002Fsuno.ai\u002Fdiscord), where the community actively shares useful prompts in the **#audio-prompts** channel.  \n- 💬 Growing community support and access to new features here: \n\n     [![](https:\u002F\u002Fdcbadge.vercel.app\u002Fapi\u002Fserver\u002FJ2B2vsjKuE)](https:\u002F\u002Fsuno.ai\u002Fdiscord)\n\n- 💾 You can now use Bark with GPUs that have low VRAM (\u003C4GB).\n\n**2023.04.20**\n- 🐶 Bark release!\n\n## 🐍 Usage in Python\n\n\u003Cdetails open>\n  \u003Csummary>\u003Ch3>🪑 Basics\u003C\u002Fh3>\u003C\u002Fsummary>\n\n```python\nfrom bark import SAMPLE_RATE, generate_audio, preload_models\nfrom scipy.io.wavfile import write as write_wav\nfrom IPython.display import Audio\n\n# download and load all models\npreload_models()\n\n# generate audio from text\ntext_prompt = \"\"\"\n     Hello, my name is Suno. And, uh — and I like pizza. [laughs] \n     But I also have other interests such as playing tic tac toe.\n\"\"\"\naudio_array = generate_audio(text_prompt)\n\n# save audio to disk\nwrite_wav(\"bark_generation.wav\", SAMPLE_RATE, audio_array)\n  \n# play text in notebook\nAudio(audio_array, rate=SAMPLE_RATE)\n```\n     \n[pizza1.webm](https:\u002F\u002Fuser-images.githubusercontent.com\u002F34592747\u002Fcfa98e54-721c-4b9c-b962-688e09db684f.webm)\n\n\u003C\u002Fdetails>\n\n\u003Cdetails open>\n  \u003Csummary>\u003Ch3>🌎 Foreign Language\u003C\u002Fh3>\u003C\u002Fsummary>\n\u003Cbr>\nBark 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. \n\u003Cbr>\n\u003Cbr>\n\n```python\n\ntext_prompt = \"\"\"\n    추석은 내가 가장 좋아하는 명절이다. 나는 며칠 동안 휴식을 취하고 친구 및 가족과 시간을 보낼 수 있습니다.\n\"\"\"\naudio_array = generate_audio(text_prompt)\n```\n[suno_korean.webm](https:\u002F\u002Fuser-images.githubusercontent.com\u002F32879321\u002F235313033-dc4477b9-2da0-4b94-9c8b-a8c2d8f5bb5e.webm)\n  \n*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.*\n```python\ntext_prompt = \"\"\"\n    Der Dreißigjährige Krieg (1618-1648) war ein verheerender Konflikt, der Europa stark geprägt hat.\n    This is a beginning of the history. If you want to hear more, please continue.\n\"\"\"\naudio_array = generate_audio(text_prompt)\n```\n[suno_german_accent.webm](https:\u002F\u002Fuser-images.githubusercontent.com\u002F34592747\u002F3f96ab3e-02ec-49cb-97a6-cf5af0b3524a.webm)\n\n\n     \n\n\u003C\u002Fdetails>\n\n\u003Cdetails open>\n  \u003Csummary>\u003Ch3>🎶 Music\u003C\u002Fh3>\u003C\u002Fsummary>\nBark 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.\n\u003Cbr>\n\u003Cbr>\n\n```python\ntext_prompt = \"\"\"\n    ♪ In the jungle, the mighty jungle, the lion barks tonight ♪\n\"\"\"\naudio_array = generate_audio(text_prompt)\n```\n[lion.webm](https:\u002F\u002Fuser-images.githubusercontent.com\u002F5068315\u002F230684766-97f5ea23-ad99-473c-924b-66b6fab24289.webm)\n\u003C\u002Fdetails>\n\n\u003Cdetails open>\n\u003Csummary>\u003Ch3>🎤 Voice Presets\u003C\u002Fh3>\u003C\u002Fsummary>\n  \nBark supports 100+ speaker presets across [supported languages](#supported-languages). You can browse the library of supported voice presets [HERE](https:\u002F\u002Fsuno-ai.notion.site\u002F8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c), or in the [code](bark\u002Fassets\u002Fprompts). The community also often shares presets in [Discord](https:\u002F\u002Fdiscord.gg\u002FJ2B2vsjKuE).\n\n> 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.\n\n```python\ntext_prompt = \"\"\"\n    I have a silky smooth voice, and today I will tell you about \n    the exercise regimen of the common sloth.\n\"\"\"\naudio_array = generate_audio(text_prompt, history_prompt=\"v2\u002Fen_speaker_1\")\n```\n\n[sloth.webm](https:\u002F\u002Fuser-images.githubusercontent.com\u002F5068315\u002F230684883-a344c619-a560-4ff5-8b99-b4463a34487b.webm)\n\u003C\u002Fdetails>\n\n### 📃 Generating Longer Audio\n  \nBy default, `generate_audio` works well with around 13 seconds of spoken text. For an example of how to do long-form generation, see 👉 **[Notebook](notebooks\u002Flong_form_generation.ipynb)** 👈\n\n\u003Cdetails>\n\u003Csummary>Click to toggle example long-form generations (from the example notebook)\u003C\u002Fsummary>\n\n[dialog.webm](https:\u002F\u002Fuser-images.githubusercontent.com\u002F2565833\u002F235463539-f57608da-e4cb-4062-8771-148e29512b01.webm)\n\n[longform_advanced.webm](https:\u002F\u002Fuser-images.githubusercontent.com\u002F2565833\u002F235463547-1c0d8744-269b-43fe-9630-897ea5731652.webm)\n\n[longform_basic.webm](https:\u002F\u002Fuser-images.githubusercontent.com\u002F2565833\u002F235463559-87efe9f8-a2db-4d59-b764-57db83f95270.webm)\n\n\u003C\u002Fdetails>\n\n\n## Command line\n```commandline\npython -m bark --text \"Hello, my name is Suno.\" --output_filename \"example.wav\"\n```\n\n## 💻 Installation\n*‼️ CAUTION ‼️ Do NOT use `pip install bark`. It installs a different package, which is not managed by Suno.*\n```bash\npip install git+https:\u002F\u002Fgithub.com\u002Fsuno-ai\u002Fbark.git\n```\n\nor\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fsuno-ai\u002Fbark\ncd bark && pip install . \n```\n\n\n## 🤗 Transformers Usage\n\nBark is available in the 🤗 Transformers library from version 4.31.0 onwards, requiring minimal dependencies \nand additional packages. Steps to get started:\n\n1. First install the 🤗 [Transformers library](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftransformers) from main:\n\n```\npip install git+https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftransformers.git\n```\n\n2. Run the following Python code to generate speech samples:\n\n```py\nfrom transformers import AutoProcessor, BarkModel\n\nprocessor = AutoProcessor.from_pretrained(\"suno\u002Fbark\")\nmodel = BarkModel.from_pretrained(\"suno\u002Fbark\")\n\nvoice_preset = \"v2\u002Fen_speaker_6\"\n\ninputs = processor(\"Hello, my dog is cute\", voice_preset=voice_preset)\n\naudio_array = model.generate(**inputs)\naudio_array = audio_array.cpu().numpy().squeeze()\n```\n\n3. Listen to the audio samples either in an ipynb notebook:\n\n```py\nfrom IPython.display import Audio\n\nsample_rate = model.generation_config.sample_rate\nAudio(audio_array, rate=sample_rate)\n```\n\nOr save them as a `.wav` file using a third-party library, e.g. `scipy`:\n\n```py\nimport scipy\n\nsample_rate = model.generation_config.sample_rate\nscipy.io.wavfile.write(\"bark_out.wav\", rate=sample_rate, data=audio_array)\n```\n\nFor more details on using the Bark model for inference using the 🤗 Transformers library, refer to the \n[Bark docs](https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Ftransformers\u002Fmain\u002Fen\u002Fmodel_doc\u002Fbark) or the hands-on \n[Google Colab](https:\u002F\u002Fcolab.research.google.com\u002Fdrive\u002F1dWWkZzvu7L9Bunq9zvD-W02RFUXoW-Pd?usp=sharing).\n\n\n## 🛠️ Hardware and Inference Speed\n\nBark has been tested and works on both CPU and GPU (`pytorch 2.0+`, CUDA 11.7 and CUDA 12.0).\n\nOn enterprise GPUs and PyTorch nightly, Bark can generate audio in roughly real-time. On older GPUs, default colab, or CPU, inference time might be significantly slower. For older GPUs or CPU you might want to consider using smaller models. Details can be found in out tutorial sections here.\n\nThe full version of Bark requires around 12GB of VRAM to hold everything on GPU at the same time. \nTo use a smaller version of the models, which should fit into 8GB VRAM, set the environment flag `SUNO_USE_SMALL_MODELS=True`.\n\nIf you don't have hardware available or if you want to play with bigger versions of our models, you can also sign up for early access to our model playground [here](https:\u002F\u002Fsuno-ai.typeform.com\u002Fsuno-studio).\n\n## ⚙️ Details\n\nBark is fully generative text-to-audio model devolved for research and demo purposes. It follows a GPT style architecture similar to [AudioLM](https:\u002F\u002Farxiv.org\u002Fabs\u002F2209.03143) and [Vall-E](https:\u002F\u002Farxiv.org\u002Fabs\u002F2301.02111) and a quantized Audio representation from [EnCodec](https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002Fencodec). It is not a conventional TTS model, but instead a fully generative text-to-audio model capable of deviating in unexpected ways from any given script. Different to previous approaches, the input text prompt is converted directly to audio without the intermediate use of phonemes. It can therefore generalize to arbitrary instructions beyond speech such as music lyrics, sound effects or other non-speech sounds.\n\nBelow is a list of some known non-speech sounds, but we are finding more every day. Please let us know if you find patterns that work particularly well on [Discord](https:\u002F\u002Fsuno.ai\u002Fdiscord)!\n\n- `[laughter]`\n- `[laughs]`\n- `[sighs]`\n- `[music]`\n- `[gasps]`\n- `[clears throat]`\n- `—` or `...` for hesitations\n- `♪` for song lyrics\n- CAPITALIZATION for emphasis of a word\n- `[MAN]` and `[WOMAN]` to bias Bark toward male and female speakers, respectively\n\n### Supported Languages\n\n| Language | Status |\n| --- | :---: |\n| English (en) | ✅ |\n| German (de) | ✅ |\n| Spanish (es) | ✅ |\n| French (fr) | ✅ |\n| Hindi (hi) | ✅ |\n| Italian (it) | ✅ |\n| Japanese (ja) | ✅ |\n| Korean (ko) | ✅ |\n| Polish (pl) | ✅ |\n| Portuguese (pt) | ✅ |\n| Russian (ru) | ✅ |\n| Turkish (tr) | ✅ |\n| Chinese, simplified (zh) | ✅ |\n\nRequests for future language support [here](https:\u002F\u002Fgithub.com\u002Fsuno-ai\u002Fbark\u002Fdiscussions\u002F111) or in the **#forums** channel on [Discord](https:\u002F\u002Fsuno.ai\u002Fdiscord). \n\n## 🙏 Appreciation\n\n- [nanoGPT](https:\u002F\u002Fgithub.com\u002Fkarpathy\u002FnanoGPT) for a dead-simple and blazing fast implementation of GPT-style models\n- [EnCodec](https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002Fencodec) for a state-of-the-art implementation of a fantastic audio codec\n- [AudioLM](https:\u002F\u002Fgithub.com\u002Flucidrains\u002Faudiolm-pytorch) for related training and inference code\n- [Vall-E](https:\u002F\u002Farxiv.org\u002Fabs\u002F2301.02111), [AudioLM](https:\u002F\u002Farxiv.org\u002Fabs\u002F2209.03143) and many other ground-breaking papers that enabled the development of Bark\n\n## © License\n\nBark is licensed under the MIT License. \n\n## 📱 Community\n\n- [Twitter](https:\u002F\u002Ftwitter.com\u002Fsuno_ai_)\n- [Discord](https:\u002F\u002Fsuno.ai\u002Fdiscord)\n\n## 🎧 Suno Studio (Early Access)\n\nWe’re developing a playground for our models, including Bark. \n\nIf you are interested, you can sign up for early access [here](https:\u002F\u002Fsuno-ai.typeform.com\u002Fsuno-studio).\n\n## ❓ FAQ\n\n#### How do I specify where models are downloaded and cached?\n* Bark uses Hugging Face to download and store models. You can see find more info [here](https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Fhuggingface_hub\u002Fpackage_reference\u002Fenvironment_variables#hfhome). \n\n\n#### Bark's generations sometimes differ from my prompts. What's happening?\n* Bark is a GPT-style model. As such, it may take some creative liberties in its generations, resulting in higher-variance model outputs than traditional text-to-speech approaches.\n\n#### What voices are supported by Bark?  \n* Bark supports 100+ speaker presets across [supported languages](#supported-languages). You can browse the library of speaker presets [here](https:\u002F\u002Fsuno-ai.notion.site\u002F8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c). The community also shares presets in [Discord](https:\u002F\u002Fsuno.ai\u002Fdiscord). Bark also supports generating unique random voices that fit the input text. Bark does not currently support custom voice cloning.\n\n#### Why is the output limited to ~13-14 seconds?\n* Bark is a GPT-style model, and its architecture\u002Fcontext window is optimized to output generations with roughly this length.\n\n#### How much VRAM do I need?\n* The full version of Bark requires around 12Gb of memory to hold everything on GPU at the same time. However, even smaller cards down to ~2Gb work with some additional settings. Simply add the following code snippet before your generation: \n\n```python\nimport os\nos.environ[\"SUNO_OFFLOAD_CPU\"] = \"True\"\nos.environ[\"SUNO_USE_SMALL_MODELS\"] = \"True\"\n```\n\n#### My generated audio sounds like a 1980s phone call. What's happening?\n* Bark generates audio from scratch. It is not meant to create only high-fidelity, studio-quality speech. Rather, outputs could be anything from perfect speech to multiple people arguing at a baseball game recorded with bad microphones.\n","Bark 是一个由 Suno 开发的基于 Transformer 的文本到音频生成模型。它能够生成高度逼真的多语言语音，以及其他音频内容，如音乐、背景噪音和简单音效，甚至可以模拟笑声、叹息声和哭泣声等非言语交流。该模型的核心技术特点在于其强大的生成能力，支持从文本提示中创造出丰富多样的音频输出。Bark 适用于需要高质量合成语音的应用场景，比如虚拟助手、有声读物制作或游戏开发等领域，同时也为研究者提供了预训练模型检查点以促进相关领域的探索。注意，由于 Bark 是一个全生成式的模型，在使用时可能会产生与输入提示不完全一致的结果，因此建议用户谨慎评估其适用性。","2026-06-11 02:42:53","top_all"]