Awesome
Please read and follow these instructions
- When you clone or install this via the Oobabooga UI please rename the extension (located in the extensions folder) from "text-generation-webui-barktts" to "bark_tts"
- When you load it up for the first time you might get an error, please try to reload the program and extension once more.
- This version is currently working with Oobabooga, I will try to keep it up to date with changes to the program.
- Check out this commit change to see how this version is different than the other: https://github.com/RandomInternetPreson/text-generation-webui-barktts/commit/c1d64d91bb6b6ff87e00e3a0090870dcc8fe5736 Other than working with Oobabooga it also allows one to change characters that the AI voice model receives and converts. For example 's would be read as ' ; in the previous implementation of bark
This is an audio sample from a short story an AI wrote using Oobabooga's textgen-webui
These are the settings used to produce the sample and story.
text-generation-webui-barktts
A simple extension for the text-generation-webui by oobabooga that uses Bark for audio output.
How to install - via Windows and Oobabooga UI
- With Oobabooga's textgen_webui installed go to the "Session" tab and paste https://github.com/RandomInternetPreson/text-generation-webui-barktts into the "Install or update an extension" window, very importantly press "Enter" after entering and the UI will clone this repo
- Once cloned, close the UI and command windows and change the name of the folder which was created to clone this repo, change it from "text-generation-webui-barktts" to "bark_tts":
-
In the text-generation-webui-main folder, click on "cmd_windows.bat" and navigate to the directory for this extension using the phrassing below with cd before the folder directory:
cd L:\OobTesting\text-generation-webui-main\extensions\bark_tts
You would use your own directory mine is just an example
cd your-directory-here
and press "Enter"
-
Now enter this "pip install -r requirements.txt" in the command prompt and press "Enter", this will install all the stuff needed to get this running.
-
Once complete you can close the command prompt window and start the textgen-webui again. Please note that you may get an error when you load the extension for the first time, please restart textgen-webui and load again. It's some issue with downloading the models for the first time.
This is a video of how to install a different extension, but it is the same set of steps, just don't do "pip install TTS --no-dependencies"
How to install - via Conda Enviroment
Assuming you already have the webui set up:
- Activate the conda environment with the
cmd_xxx.bat
or usingconda activate textgen
- Enter the
text-generation-webui/extensions/
directory and clone this repository
cd text-generation-webui/extensions/
git clone https://github.com/minemo/text-generation-webui-barktts bark_tts/
- install the requirements
pip install -r extensions/bark_tts/requirements.txt
- Add
--extensions bark_tts
to your startup script <br/> <b>or</b> <br/> enable it through theInterface Mode
tab in the webui
Tips
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. For this extension, you could open extensions/bark_tts/.env
, then set USE_SMALL_MODELS
and USE_CPU
to true
:
# Whether to use small models
USE_SMALL_MODELS=true
# Whether to use CPU
USE_CPU=true