Welcome to the Linguflex installation guide. Try to keep close to the recommended environment to enhance the likelihood of a successful installation and smooth operation. This software was developed and tested under Windows. Although primarily developed and tested for Windows, compatibility with other platforms might be possible but remains unverified. Any insights on Linux or Mac installation or operational challenges are greatly welcomed.
Before you begin, ensure you have the following:
- Operating System: Windows 10 or 11 (Linux may work but requires additional experience)
- Graphics Card: Nvidia (recommended for full feature access)
- Python Version: 3.10.9
- NVIDIA CUDA Toolkit 11.8 (STRONGLY recommended)
- NVIDIA cuDNN 8.7.0 for CUDA 11.x (recommended)
🎥 Setup Tutorial for CUDA + cuDNN - ffmpeg
🎥 Setup Tutorial for ffmpeg
git clone https://github.com/KoljaB/Linguflex.git
cd Linguflex
-
If Python 3.10.9 is your main Python environment:
- Proceed directly to running the installation script.
-
If Python 3.10.9 is not your main Python environment:
- Open
_install_win.bat
. - Enter the path to Python 3.10.9
.exe
on the second line, e.g.,set PYTHON_EXE=D:\Programme\miniconda3\envs\textgen\python.exe
- Save the file.
- Open
-
Run the Installation Script:
_install_win.bat
(Linux, Mac, etc. - Note: These require additional expertise)
- Install the requirements and dependencies:
pip install -r requirements.txt pip install torch==2.1.2+cu118 torchaudio==2.1.2+cu118 --index-url https://download.pytorch.org/whl/cu118 pip install deepspeed pip install llama-cpp-python python download_models.py
Edit the lingu/settings.yaml
file to tailor Linguflex to your setup requirements. For the mail module to function properly, you must configure the IMAP server, username, and password in this settings file.
To use the project's default language model, you need to set the OPENAI_API_KEY. Alternatively, to switch to a local language model, adjust the use_local_llm parameter in the local_llm section of settings.yaml to true.
For temporary usage (lasts until the Command Prompt session is closed):
set OPENAI_API_KEY=your_openai_api_key_here
For permanent usage (persists across sessions and reboots):
setx OPENAI_API_KEY "your_openai_api_key_here"
Required Variables:
OPENAI_API_KEY
(for GPT API)AZURE_SPEECH_KEY
andAZURE_SPEECH_REGION
(for Azure TTS)ELEVENLABS_API_KEY
(for Elevenlabs TTS)GOOGLE_API_KEY
(for Music Playout)OPENWEATHERMAP_API_KEY
(for Weather module)
Run the application using:
python -m lingu.core.run
Or execute run.bat
.