diff --git a/main.py b/main.py index 53839b9..8cf43ff 100644 --- a/main.py +++ b/main.py @@ -859,6 +859,11 @@ def execute_cmd(cmd: str, voice: str): play(confirm) +print("=" * 60) +print(f" J.A.R.V.I.S. v{config.VA_VER} [Python edition]") +print(f" Total commands: {len(VA_CMD_LIST)}") +print("=" * 60) + recorder = PvRecorder(device_index=config.MICROPHONE_INDEX, frame_length=512) recorder.start() print('Using device: %s' % recorder.selected_device) diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..ebe45fb --- /dev/null +++ b/run.bat @@ -0,0 +1,13 @@ +@echo off +cd /d "%~dp0" +title J.A.R.V.I.S. (Python edition) + +if exist ".venv\Scripts\python.exe" ( + ".venv\Scripts\python.exe" main.py +) else ( + python main.py +) + +echo. +echo --- jarvis exited, press a key to close --- +pause >nul