Full demo and setup guide: https://youtu.be/Yl-T3YgePmw?si=n-vaZzClw0Q833E5
install python 3.10 https://www.python.org/downloads/release/python-3100/
install CUDA toolkit 12.4 https://developer.nvidia.com/cuda-12-4-0-download-archive
install visual studio and add desktop development with C++ component https://visualstudio.microsoft.com/downloads/
Download the project from releases
open command prompt in project folder.
Create environment
python -m venv venv
.\venv\Scripts\activate
(If you encounter an error that says “cannot be loaded because the execution of scripts is disabled on this system. Open powershell with admin privilage and run Set-ExecutionPolicy RemoteSigned
)
Install packages
pip install -r requirements.txt
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
$env:CMAKE_ARGS ="-DGGML_CUDA=ON"
pip install llama-cpp-python --no-cache-dir --verbose --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/124
pip install nltk
python -m nltk.downloader -d C:\nltk_data all
Start Program
python main.py
When you see this message, go to http://localhost:7860 to see web UI
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Note: To start the program again, run:
.\venv\Scripts\activate
python main.py
Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True
in launch()
.
## TODO (This project is still under development and more features are planned)
- Fetch chat input from streaming platforms (Finished)
- Improve local LLM (Finetuned model avaliable https://huggingface.co/xiaoheiqaq/Aya-7b-gguf)
- Write plugins for cloud providers(Azure tts, elevenlabs, chatgpt, whisper...)
- GPU support (Finished)
- Vtube studio integration (Finished)
- Let AI play games and provide commentary. (can currently play chess and keep talking nobody explode)
- AI singing
## FAQ:
- To fetch chat from Youtube, copy the youtube_video_id from the stream url like this:
![image](https://github.com/0Xiaohei0/LocalAIVtuber/assets/24196833/942b9811-46bc-40f9-a7df-7938d0070513)
Then press start fetching chat
![image](https://github.com/0Xiaohei0/LocalAIVtuber/assets/24196833/96b8a971-00e8-4930-a9b4-897b3ddf27bf)