Skip to content

AI-Bluetooth-Phone-Assistant 3.1

Pre-release
Pre-release

Choose a tag to compare

@antor44 antor44 released this 08 Nov 09:24
· 43 commits to main since this release
751c7de

v3.1 - Editable category instructions, expected calls, Tor status fix, cleaner monitor πŸš€πŸ—‚οΈπŸ“¦πŸ§…πŸ”Š

ℹ️ The Android app does not change: it stays at version 1.1.4.

⚠️ Important: update the Android app

Since 28 October 2026 the Tor network no longer accepts Tor 0.4.8 or older. Android app versions 1.1.2 and earlier carry Tor 0.4.8, so they can no longer connect. Version 1.1.4 fixes this and also carries the latest Tor security fixes. The Tor program of the switchboard must also be 0.4.9 or newer (see Update below).

✨ What's New

  • πŸ—‚οΈ Category instructions: every category of the Web GUI (Doctors, Lawyers, Mechanic/Dentist, Couriers…) now has an editable instructions text. The texts of all categories are always added to the assistant's instructions when a call starts. You can use {boss_name} and {assistant_name} in them.
  • πŸ“¦ New default category Couriers (Repartidores in Spanish). Now you can edit it in the Web GUI, for example to allow leaving the package with a neighbour or at a known nearby shop. The workshop/business rule also moved to its category (Mechanic/Dentist) and was removed from the general instructions.
  • πŸ”„ The new texts are added once to the categories you already had the first time v3.1 starts (a category you delete afterwards stays deleted). New installs and the Load Defaults button include them too.
  • πŸ“‹ Expected types of calls now reaches the assistant: it is added right after the activity description, under its own heading.
  • πŸ”’ Only one daemon can run at a time. A second phone_assistant.py stops with a clear message instead of fighting the first one.

πŸ› Bug Fixes

  • πŸ§… Remote access (Tor): the panel could stay at Starting (0%) even though Tor was running, whatever you did in the Web GUI. The cause was that another launch of the program overwrote the saved Tor status while the real Tor kept running, and nothing wrote it again. The daemon now repairs the published status by itself, and a second launch no longer touches it.
  • Running phone_assistant.py --test-spam while the switchboard was running reset its state (a paused switchboard went back to running). Fixed.
  • πŸ”Š Local monitor: when the caller kept talking after a pause, the speakers could still play the answer the assistant had started and the phone never received. The monitor is now emptied at the same moment as the phone.
  • The Expected types of calls text was saved but never sent to the assistant. Fixed (see above).

πŸ“₯ Update

  • Switchboard (PC, or Orange Pi / SBC over SSH): run from the installation directory:
    cd ~/AI-Bluetooth-Phone-Assistant
    git pull
    ./install_system_deps.sh
    The installer manages the Python virtual environment (venv) by itself, but it must be run from the installation directory. Optional flags can be combined: ./install_system_deps.sh --with-tor --with-whisper.
  • Restart: launch manually with ./my_gui.sh, or, if you use the systemd user service: systemctl --user restart ai-switchboard.service. Live logs: ./my_gui.sh --logs.
  • Web GUI network access: read the Security & Network Exposure section of the README. The systemd service created by the README starts the Web GUI with --lan. If you only use the panel from the device itself, over an SSH tunnel or through a VPN, replace --lan with --local in the ExecStart line of ~/.config/systemd/user/ai-switchboard.service, then run systemctl --user daemon-reload and systemctl --user restart ai-switchboard.service.
  • Languages added by you: copy the new keys from the English or Spanish files: category_rule_header, expected_calls_header and the {category_rules} marker in assistant.json, and ui_cat_prompt, ui_cat_prompt_help and the prompt text of the default categories in gui.json.
  • Tested on: Xubuntu / Ubuntu 24.04 LTS (PC) and Armbian Ubuntu 24.04 LTS Noble XFCE (Orange Pi Zero 3) with an external USB Bluetooth adapter.
  • Android app: nothing to do if you already have version 1.1.4. Otherwise install the new android/AI-Switchboard.apk over the previous official one (same signing certificate). Your pairing is kept. APK SHA-256 (version 1.1.4): 452ff113f053dd5cc1ffa21b501c1e44d052b1e8b858dd7128e95e853b516d96
  • Tor on the switchboard: if you use Remote access (Tor), check that the system tor is 0.4.9 or newer, and keep it updated:
    tor --version
    Ubuntu 24.04 and Armbian based on it get Tor 0.4.9 with the normal updates: sudo apt update && sudo apt upgrade. On other distributions, if the version is older, install Tor from the Tor Project's package repository: https://support.torproject.org/apt/tor-deb-repo/.