-
-
Notifications
You must be signed in to change notification settings - Fork 24
set_up_env_guide
This guide explains how to use the set_up_env.exe tool to set up and manage the Synthalingua environment. This tool is provided as a compiled executable for Windows users, so you do not need to run it with Python.
set_up_env.exe is a one-stop setup utility for Synthalingua. It automates the download, installation, and configuration of all required tools:
- FFmpeg (audio/video processing)
- yt-dlp (video downloader)
- 7zr (archive extractor)
- Python Embedded (portable Python 3.12.10 installation for vocal isolation)
- Demucs (vocal isolation, optional, now supports parallel jobs for faster processing)
It also creates a batch file (ffmpeg_path.bat) to set up your PATH and activate the correct environment for Synthalingua.
-
Locate the Executable
- Find
set_up_env.exein your Synthalingua folder (usually in the main directory).
- Find
-
DO NOT Run as Administrator (NOT Recommended)
- Click
set_up_env.exeas is and just run.
- Click
-
Follow the Prompts
- The tool is interactive. It will ask if you want to reuse existing tools, provide your own, or download fresh copies.
- For a fresh install, just press Enter to accept defaults unless you have custom requirements.
-
Miniconda Path Warning:
- It is strongly recommended to use the default Miniconda installation path.
- If you must choose a custom location, make absolutely sure the path contains NO SPACES. Paths with spaces can cause installation and runtime errors with Miniconda and other tools.
- The setup tool will warn you and prevent you from using a path with spaces.
You can run set_up_env.exe from a terminal (PowerShell or Command Prompt) with the following options:
-
set_up_env.exe
Basic setup (FFmpeg, yt-dlp, 7zr only) -
set_up_env.exe --using_vocal_isolation
Also installs Python Embedded and Demucs for vocal isolation features (Demucs now supports parallel jobs with--isolate_vocals [jobs]for faster processing) -
set_up_env.exe --reinstall
Wipes tool folders/files and redownloads everything fresh -
set_up_env.exe --reinstall --using_vocal_isolation
Full reinstall, including vocal isolation tools
Tip: If you double-click the exe, it will prompt you interactively for these options.
The data_whisper folder contains your Python Embedded environment and Demucs installation. To preserve your environment and avoid re-downloading large models or packages:
-
Do NOT use
--reinstallunless you want to wipe and start over. - If prompted about removing
data_whisperor Python Embedded, choose No to keep your environment. - You can safely update other tools (FFmpeg, yt-dlp, etc.) without affecting
data_whisper.
When running set_up_env.exe, here's what you'll see and how to respond to preserve your environment:
Fresh Install (First Time Running):
🆕 Fresh installation detected!
For the best experience, we recommend setting up vocal isolation features.
Would you like to set up vocal isolation (demucs) along with the basic tools? (yes/no): yes
Python Embedded will be installed to: E:\Synthalingua\Synthalingua_Main\data_whisper
Synthalingua supports both CPU and GPU (CUDA/ROCm) processing.
Which device do you typically want to use with Synthalingua? (cpu/cuda/rocm): cuda
Installing demucs in data_whisper environment...
Existing Installation (Updating Tools):
Found existing 7zr.exe. Use it or download fresh? (use/download): use
Do you already have FFmpeg? (yes/no): no
FFmpeg folder already exists, skipping download.
Do you already have yt-dlp? (yes/no): no
yt-dlp folder already exists, skipping download.
Vocal Isolation Setup (Preserving Environment):
A data_whisper environment already exists at E:\Synthalingua\Synthalingua_Main\data_whisper.
Would you like to (k)eep, (r)ecreate the data_whisper environment? (keep/recreate): keep
Using data_whisper environment at E:\Synthalingua\Synthalingua_Main\data_whisper.
Device Selection (During Setup):
Synthalingua supports both CPU and GPU (CUDA) processing.
This affects both transcription and vocal isolation (demucs) performance.
Which device do you typically want to use with Synthalingua? (cpu/cuda): cuda
Important: Always answer keep when asked about environment options, and yes when asked about reusing assets. This preserves your models and packages.
To back up your environment:
- Close all Synthalingua programs.
- Copy the following folder to a safe location (e.g., an external drive or backup folder):
-
data_whisper(in your Synthalingua directory)
-
To restore your environment on the same or a new PC:
- Copy the folder back to its original location.
- Run
set_up_env.exe(without--reinstall) to update tool paths if needed. - Run
ffmpeg_path.batto activate the environment.
This will preserve all installed packages, models, and settings. You can use this method to migrate or recover your setup easily.
Version 0.0.49
🆕 Fresh installation detected!
For the best experience, we recommend setting up vocal isolation features.
Would you like to set up vocal isolation (demucs) along with the basic tools? (yes/no): yes
This script will download the following tools to 'downloaded_assets/' folder:
1. FFmpeg, 2. yt-dlp, 3. 7zr
4. Python Embedded 3.12.10, 5. Demucs
All installers and tools will be saved locally for reuse.
Python Embedded will be installed to: E:\Synthalingua\Synthalingua_Main\data_whisper
Do you want to provide your own version of 7zr.exe? (yes/no): no
Do you already have FFmpeg? (yes/no): no
Do you already have yt-dlp? (yes/no): no
Setting up vocal isolation feature...
Downloading Python Embedded 3.12.10...
Extracting Python Embedded to data_whisper...
Installing pip in Python Embedded environment...
Synthalingua supports both CPU and GPU (CUDA/ROCm) processing.
This affects both transcription and vocal isolation (demucs) performance.
Which device do you typically want to use with Synthalingua? (cpu/cuda/rocm): cuda
Installing PyTorch with CUDA 12.8 support...
Installing demucs in data_whisper environment...
Vocal isolation setup completed successfully!
Version 0.0.45
Config file already exists. Use --reinstall to set up again, or --using_vocal_isolation to add vocal isolation.
To update tools while keeping your environment, run:
set_up_env.exe --reinstall
Then you'll see:
Detected existing FFmpeg at E:\Synthalingua\downloaded_assets\ffmpeg. Reuse this asset? (yes/no): yes
Detected existing yt-dlp at E:\Synthalingua\downloaded_assets\yt-dlp_win. Reuse this asset? (yes/no): yes
Detected existing 7zr.exe at E:\Synthalingua\downloaded_assets\7zr.exe. Reuse this asset? (yes/no): yes
Detected existing Python Embedded installation at E:\Synthalingua\Synthalingua_Main\data_whisper. Reuse this asset? (yes/no): yes
Python Embedded is already installed at E:\Synthalingua\Synthalingua_Main\data_whisper.
Do you want to (w)ipe and reinstall, or (k)eep and reuse it? (wipe/keep): keep
A data_whisper environment already exists at E:\Synthalingua\Synthalingua_Main\data_whisper.
Would you like to (k)eep or (r)ecreate the data_whisper environment? (keep/recreate): keep
Using data_whisper environment at E:\Synthalingua\Synthalingua_Main\data_whisper.
Do you want to provide your own version of 7zr.exe? (yes/no): yes
Please enter the path to your 7zr.exe file: C:\MyTools\7zr.exe
Do you already have FFmpeg? (yes/no): yes
Do you want to use the system default FFmpeg? (yes/no): no
Please enter the path to your FFmpeg bin folder: C:\MyTools\ffmpeg\bin
Do you already have yt-dlp? (yes/no): yes
Do you want to use the system default yt-dlp? (yes/no): yes
Key Points:
- Always answer
yeswhen asked about reusing assets to preserve your environment - Answer
keepwhen asked about wiping/keeping Miniconda installation - Answer
keepwhen asked about environment options to preserve your models and packages - The script remembers your choices and won't re-download unless you specifically request it
- Use
--reinstallto update tools while preserving your environment by choosing the preserve options
- Interactive Prompts: The tool will ask if you want to reuse, download, or provide your own versions of each tool. This helps avoid unnecessary downloads and lets you use custom builds.
-
Batch File Creation: After setup, a
ffmpeg_path.batfile is created. Run this batch file to set up your PATH and activate the correct environment for Synthalingua. -
Vocal Isolation: If you enable vocal isolation, the tool installs Python Embedded 3.12.10 and Demucs, and sets up a
data_whisperenvironment. You can choose CPU, CUDA (NVIDIA GPU), or ROCm (AMD GPU) support during setup.-
Parallel Jobs: The
--isolate_vocalsargument now supports an optional value to control the number of parallel jobs Demucs uses. You can use--isolate_vocals allto use all CPU cores, or specify a number (e.g.,--isolate_vocals 4). This can significantly speed up vocal isolation on multi-core systems.
-
Parallel Jobs: The
-
Safe Reinstallation: The
--reinstallflag lets you wipe and redownload tools. You will be prompted before deleting important folders likedata_whisper. - Python Embedded: The data_whisper folder contains a complete portable Python 3.12.10 installation with all necessary packages for vocal isolation.
Sometimes you may need to manually install or update packages in your data_whisper environment. This can happen when:
- A package installation fails during setup
- You need to reinstall corrupted packages
- New dependencies are required for features
- Conda fails to install a specific package
To manually work with your data_whisper environment:
-
Open a terminal (PowerShell, Command Prompt, or Git Bash)
-
Navigate to your Synthalingua folder:
cd /path/to/your/Synthalingua_Main -
Activate the environment using the batch file:
./ffmpeg_path.bat
After running this, you should see
(data_whisper)in your terminal prompt, indicating the environment is active.
When conda fails to install a package or you need to reinstall something, use pip:
# Example: Installing diffq package that failed during setup
pip install diffq
# Example: Reinstalling a corrupted package
pip install --force-reinstall demucs
# Example: Installing a specific version
pip install torch==2.7.1
# Example: Upgrading a package to latest version
pip install --upgrade numpyHere's a common scenario where manual installation is needed:
((data_whisper) )
Username@DESKTOP-TJ8OCSG MINGW64 /e/Synthalingua/Synthalingua_Main (refactor)
$ pip install diffq
Collecting diffq
Using cached diffq-0.2.4-cp312-cp312-win_amd64.whl
Collecting Cython (from diffq)
Using cached cython-3.1.2-cp312-cp312-win_amd64.whl.metadata (6.0 kB)
Requirement already satisfied: numpy in e:\synthalingua\synthalingua_main\data_whisper\lib\site-packages (from diffq) (1.26.4)
Requirement already satisfied: torch in e:\synthalingua\synthalingua_main\data_whisper\lib\site-packages (from diffq) (2.7.1+cu128)
[... installation continues ...]
Successfully installed Cython-3.1.2 diffq-0.2.4
((data_whisper) ) | Command | Purpose |
|---|---|
pip list |
Show all installed packages |
pip show package_name |
Show details about a specific package |
pip install package_name |
Install a new package |
pip install --upgrade package_name |
Upgrade an existing package |
pip install --force-reinstall package_name |
Force reinstall a package |
pip uninstall package_name |
Remove a package |
If a package won't install:
- Make sure you're in the
data_whisperenvironment (check for(data_whisper)in prompt) - Try updating pip first:
pip install --upgrade pip - Clear pip cache:
pip cache purge - Try installing with no cache:
pip install --no-cache-dir package_name
If you get permission errors:
- Don't run as administrator - this can break the environment
- Make sure no Synthalingua programs are running
- Check that your antivirus isn't blocking the installation
If packages are corrupted or missing:
- Activate the environment:
./ffmpeg_path.bat - Reinstall the problematic package:
pip install --force-reinstall package_name - For demucs specifically:
pip install --force-reinstall demucs diffq
After installing packages manually, test that everything works:
# Test demucs installation
python -c "import demucs; print('Demucs working!')"
# Test diffq installation
python -c "import diffq; print('Diffq working!')"
# Check torch and CUDA
python -c "import torch; print(f'PyTorch: {torch.__version__}, CUDA available: {torch.cuda.is_available()}')"Use manual installation when:
-
set_up_env.exereports package installation failures - You get import errors when trying to use vocal isolation
- Specific packages are missing or corrupted
- You need to install additional dependencies for new features
Don't use manual installation for:
- Core tools like FFmpeg or yt-dlp (use
set_up_env.exe --reinstallinstead) - Major environment recreation (use the setup tool)
- When you're unsure what went wrong (ask for help first)
- If you encounter errors, check the
troubleshooting.mdin theinformationfolder. - For advanced help, consult the GitHub Issues page.
For best results, always read the prompts carefully and back up your environment before making major changes!