Skip to content

Repository files navigation

Custom Voice Assistant (CPU-Only)

A simple customizable CPU-Only Voice Assistant that allows you to integrate your own Tacotron 2 model for Text-to-Speech (TTS) synthesis.
This assistant captures user input, processes commands, and generates voice responses using your custom voice model locally.

The project is designed to work entirely on CPU — no GPU is required.


Project Setup & Usage

This section includes both full setup instructions and usage guide.

1. Clone Repository

Clone your repository (or prepare your local project folder).

2. Install Required Packages

The project dependencies are listed in requirements.txt. Install them using:

pip install -r requirements.txt

Make sure you are using Python 3.9+.(Tested environment: Python 3.10)

Since this project is CPU-only, no CUDA or GPU configuration is necessary.

3. Prepare Custom Tacotron 2 Model

  • Train or download a pre-trained Tacotron 2 model (e.g. Model from Hugging Face).
  • Place your Tacotron 2 checkpoint file inside the tts_model/ directory. (Recommend)

4. Update Tacotron 2 Model Path

  • Run settings.py.
python settings.py
  • Update the TTS model path to your Tacotron 2 model
  • Adjust other settings if needed

5. Run the Voice Assistant

Finally, start your assistant by running:

python main.py

The assistant will start taking voice/text commands and respond using your custom voice model.


🔧 Notes

  • Fully CPU compatible (but slower inference compared to GPU). No CUDA or GPU drivers required.
  • Everything operates locally.
  • The model will try to understand your intent through your human text, and find the most suitable intent for you.
  • Pass through LLM if couldn't find corresponding intent

Current Development

  • Convert human text to corresponding intents command ✅
    • Cached sentence embeddings + cosine similarity with auto-invalidation when intents file is changed ✅
  • Different Intents are still in progress, lacking in functionality.
    • Current intents:
      • Play Music
      • Tell Time
      • Tell Date
      • Calculator(Can calculate from english math)
      • Open Settings
      • Reload Model (after modified TTS settings, reload model to apply changes)
  • With GUI real time settings ✅
  • Local speech to text using vosk models ✅
  • LLM (Qwen2.5 fine-tuned) ✅

About

A CPU-Only Voice Assistant that allows you to integrate your own Tacotron 2 model for TTS synthesis. This assistant captures user input, processes commands, and generates voice responses using your custom voice model locally.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages