Chat with an AI Vtuber
Uses:
- whisper.cpp
- llama.cpp
- Coqui TTS
- VTube Studio
git clone --recurse-submodules https://github.com/TelevisionNinja/chat.git
Download and install VTube Studio from Steam
sudo apt install espeak-ng
Download and install the msi variant from https://github.com/espeak-ng/espeak-ng/releases
- Download and install Python 3.11
- cd into the repository ```cd ./chat``
- Create the virtual environment
python3.11 -m venv venv
- Activate the virtual environment
source ./venv/bin/activate
- Install the Python Dependencies below into the virtual environment
Download and install Python 3.11
Install Pytorch by following the 'Get Started' instructions from the website
pip install TTS sounddevice pyvts
sudo apt install make gcc g++ libsdl2-dev
sudo apt install nvidia-cuda-toolkit
Install brew with
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Dependencies with
brew install make gcc sdl2
- Download and install Visual Studio and the C++ workload from Microsoft
- Download and install the CUDA Toolkit from the Nvidia developer website
- Download the VC variant from https://github.com/libsdl-org/SDL/releases
- Extract to the directory
./src/llama.cpp
- Rename the extracted folder to
SDL2
Download and install VB-Cable by VB-Audio Software
With CUDA
cd ./src/llama.cpp
make -j GGML_CUDA=1
cd ../..
Without CUDA
cd ./src/llama.cpp
make -j
cd ../..
cd ./src/llama.cpp
make -j
cd ../..
Use Command Prompt
With CUDA
cd ./src/llama.cpp
set SDL2_DIR=SDL2\cmake
cmake -DWHISPER_SDL2=ON -DGGML_CUDA=ON -B build
cmake --build build --config release -j
cd ../..
Without CUDA
cd ./src/llama.cpp
set SDL2_DIR=SDL2\cmake
cmake -DWHISPER_SDL2=ON -B build
cmake --build build --config release -j
cd ../..
sudo chmod +x ./src/llama.cpp/common/talk/speak.sh
sudo chmod +x ./launch.sh
-
Launch VTube Studio
-
Run the launch script
./launch.sh
powershell .\launch.ps1
-
Click on the allow button for the plugin to function
-
Go to the model settings and change the input to
AIVoiceVolume
in theMouth Open
section