GOAL: Develop a Self hosted Voice Assistant application with a self hosted AI in real time. Everything needs to be self hosted, and in real time.You will be interacting the LLM using voice instead of typings.
nvcc install
- wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb
- sudo dpkg -i cuda-keyring_1.0-1_all.deb
- sudo apt update
- node 20+
- yarn
- nvcc 12.6
- python v3.11
- libcudnn9-cuda-12 (if you are going to use cuda)
cd mainAppyarn installnpm run start:dev
cd transcriptionServerpython3.11 -m venv venv3.11source venv3.11/bin/activatesh install.sh
sudo apt install espeak-ngcd voiceSyntesis/coquiTTSpython3.11 -m venv venv3.11source venv3.11/bin/activatesh install.sh
After all installation are done:
1. `npm run start:dev`
1. cd transcriptionService
2. python3.11 -m venv venv3.11
3. source venv3.11/bin/activate
4. bash serve.sh
1. cd voiceSynthesis/coquiTTS
2. python3.11 -m venv venv3.11
3. `cd vits`
4. `bash serve.sh`
*NOTE: use vits as it is the onlyone that can be used for real time.
- How do i talk to LLM?
Ans:
- Start all 3 apps: mainServer, transcriptionServer and voiceSynthesis app.
- From cli, make a curl request
curl -X GET http://localhost:3000/voiceChat/startThis will start voice recording. It will stop if there is silence for 5 sec. Then audio will be transcripted and send to llm, then send to voice synthesis and response from llm will be converted to audio and played.
sudo apt-get install libcudnn9-cuda-12