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
Why exactly this python version?
- Because we use RVC Postprocessing.
- The code to do this is based on the realtime processing of RVC WebUI project. The requirements.txt only works with python <3.11 - if you find a way to install all dependencies on 3.11 or 3.12 let me know.
-
NVIDIA cuDNN for CUDA 12.x or NVIDIA cuDNN 8.7.0 for CUDA 11.x 🎥 Setup Tutorial for CUDA + cuDNN
-
If you want to start with OpenAI-Client, set your OpenAI API key:
Windows:setx OPENAI_API_KEY "your-api-key-here"
macOS and Linux:export OPENAI_API_KEY='your-api-key-here'
Additional components that may be required:
- VLC Player installed (needed for using the music module)
- eSpeak NG (possibly needed for certain text-to-speech functionalities in Coqui TTS / RealtimeTTS)
- Visual Studio Build Tools (may be necessary for compiling Coqui TTS / RealtimeTTS)
If you've encountered any issues with the installation process, here are a few ways you can contribute:
- Submit a Pull Request (PR) to the GitHub repository with specific changes or additions to the installation documentation. This direct approach also gets your name listed among the project contributors.
- Alternatively, submit an Issue on GitHub, send an Email, or discuss in our Discord channel.
Please share your feedback to make Linguflex more user-friendly and accessible. By contributing to the documentation, you help new users have a smooth start.
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
.