-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_app2.bat
More file actions
35 lines (30 loc) · 933 Bytes
/
start_app2.bat
File metadata and controls
35 lines (30 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
title Audio Loss & Distortion Monitor
echo ============================================
echo Starting Audio Loss & Distortion Monitor
echo ============================================
echo.
REM --- Activate virtual environment if exists ---
if exist venv (
echo Activating virtual environment...
call venv\Scripts\activate
) else (
echo No virtual environment found. Installing dependencies...
python -m venv venv
call venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
)
echo.
echo --- Running monitor_audio.py ---
python monitor_audio.py --list-devices
echo.
set /p device_index="Enter the device number you want to monitor: "
echo.
python monitor_audio.py --device %device_index%
echo.
echo ============================================
echo Monitoring stopped.
echo Press any key to exit...
echo ============================================
pause >nul