@echo off REM ============================================ REM Singing Detector - Quick Setup (Windows) REM ============================================ REM Run this in Anaconda Prompt / PowerShell REM Prerequisites: conda, ffmpeg in PATH REM ============================================ echo. echo ============================================ echo Singing Segment Detector - Setup echo ============================================ echo. REM Step 1: Create conda environment echo [1/4] Creating conda environment (python 3.11)... call conda create -n singing-detector python=3.11 -y if %ERRORLEVEL% neq 0 ( echo ERROR: Failed to create conda environment. pause exit /b 1 ) REM Activate environment call conda activate singing-detector REM Step 2: Install TensorFlow with GPU support echo. echo [2/4] Installing TensorFlow (GPU)... pip install tensorflow[and-cuda] if %ERRORLEVEL% neq 0 ( echo WARNING: GPU TensorFlow install failed, trying CPU version... pip install tensorflow ) REM Step 3: Install inaSpeechSegmenter echo. echo [3/4] Installing inaSpeechSegmenter... pip install inaSpeechSegmenter REM Step 4: Verify echo. echo [4/4] Verifying installation... python -c "from inaSpeechSegmenter import Segmenter; print('inaSpeechSegmenter OK!')" python -c "import tensorflow as tf; gpus = tf.config.list_physical_devices('GPU'); print(f'TensorFlow GPUs: {gpus}' if gpus else 'TensorFlow: CPU only')" echo. echo ============================================ echo Setup complete! echo ============================================ echo. echo Usage: echo conda activate singing-detector echo python detect_singing.py "path\to\stream.mp4" echo. pause