A simple CMD based UI to have a chat with Mistral Voice Chat with a GPU
This project implements a voice chat system using AI language models and text-to-speech capabilities. It supports both Hugging Face and CTransformers models, and can generate audio responses using Microsoft's Edge TTS.
- Support for multiple AI model formats (GGUF, GGML, Hugging Face models)
- Text-to-speech conversion using Edge TTS
- GPU acceleration (when available)
- Interactive command-line interface
Before running the script, make sure you have the following dependencies installed:
- Python 3.7+
- PyTorch
- transformers
- edge-tts
- ctransformers
You can install these dependencies using pip:
pip install torch transformers edge-tts ctransformers
-
Clone this repository:
git clone https://github.com/ababiya-worku/Mistral-Voice-Chat-GPU.git cd Mistral-voice-chat-gpu
-
Run the script:
python Mistaral_voice_chat_gpu.py
-
When prompted, enter the full path to the directory containing your AI model.
-
If multiple model files are found, you'll be asked to choose one.
-
Enter your prompts when asked. The AI will generate a response, which will then be converted to speech and saved as an MP3 file.
-
Type 'exit' to quit the program.
- Hugging Face models (.bin, .tar.gz)
- CTransformers models (.gguf, .ggml)
- The script will attempt to use GPU acceleration if available.
- Generated audio files are saved in the same directory as the script, with filenames based on your input prompts.