Skip to content

Free, open-source real-time voice changer for Windows: 20 live voices, local AI voice conversion (Seed-VC on ONNX Runtime), soundboard, virtual mic, hotkeys.

0.2.1: offline installer variant, fall back when a saved device is unplugged

skyd7c82352a0c8
diff --git a/README.md b/README.md
index 2457849..b677aec 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,13 @@ telemetry.
## Download
Get **`VoxShift-Setup-<version>.exe`** (about 60 MB) from
-[Releases](../../releases/latest) and run it. It's a web installer:
+[Releases](../../releases/latest) and run it.
+
+For a PC with no internet, or to keep a full copy, take
+**`VoxShift-Setup-<version>-offline.exe`** (about 880 MB) instead. It has the
+AI voices built in.
+
+The standard installer is a web installer:
* **Per-user install.** It goes into `%LOCALAPPDATA%\Programs\VoxShift`, with shortcuts and an uninstaller. The app itself needs no admin rights.
* **AI voices.** Leave **"Download AI voices now"** checked to fetch the 820 MB AI voice pack during setup. It comes in 25 MB pieces, and each one is SHA-256 checked. If you skip it, the app offers the download the first time you use an AI voice, and it resumes if interrupted.
diff --git a/packaging/publish.py b/packaging/publish.py
index 3bb913b..f9b5b56 100644
--- a/packaging/publish.py
+++ b/packaging/publish.py
@@ -81,10 +81,13 @@ def main():
ns: dict = {}
exec((ROOT / "voxshift" / "__init__.py").read_text(), ns)
ver = ns["__version__"]
- exe = BUILD / f"VoxShift-Setup-{ver}.exe"
+ exes = [p for p in (BUILD / f"VoxShift-Setup-{ver}.exe", BUILD / f"VoxShift-Setup-{ver}-offline.exe")
+ if p.is_file()]
+ if not exes:
+ raise SystemExit(f"no installer for {ver} in {BUILD}: run packaging/build.py first")
notes = a.notes.read_text(encoding="utf-8") if a.notes else f"VoxShift {ver}"
rid = ensure_release(f"v{ver}", f"VoxShift {ver}", notes, latest=True)
- upload(f"v{ver}", rid, [exe])
+ upload(f"v{ver}", rid, exes)
if __name__ == "__main__":
diff --git a/packaging/voxshift.iss b/packaging/voxshift.iss
index 29e2fc2..472fc50 100644
--- a/packaging/voxshift.iss
+++ b/packaging/voxshift.iss
@@ -28,13 +28,21 @@ PrivilegesRequired=lowest
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
OutputDir={#OutDir}
+#ifdef ModelInclude
OutputBaseFilename=VoxShift-Setup-{#AppVersion}
+; small web installer: squeeze it
+Compression=lzma2/ultra64
+SolidCompression=yes
+#else
+OutputBaseFilename=VoxShift-Setup-{#AppVersion}-offline
+; offline installer: the model weights barely compress, so don't burn minutes of CPU trying
+Compression=lzma2/fast
+SolidCompression=no
+#endif
SetupIconFile=..\voxshift\assets\voxshift.ico
UninstallDisplayIcon={app}\VoxShift.exe
UninstallDisplayName=VoxShift
WizardStyle=modern
-Compression=lzma2/ultra64
-SolidCompression=yes
CloseApplications=yes
RestartApplications=no
diff --git a/voxshift/gui.py b/voxshift/gui.py
index d407254..5c25d31 100644
--- a/voxshift/gui.py
+++ b/voxshift/gui.py
@@ -410,15 +410,28 @@ class App:
self.refresh_voices(select="clean")
# -------------------------------------------------------------- engine
+ def _present(self, name: str, kind: str) -> str | None:
+ """The saved device if it is plugged in now; otherwise None (= system default), noted
+ for the status bar. Settings keep the saved name, so it is used again once reconnected."""
+ if not name or name == "virtual":
+ return name or None
+ names = [d["name"] for d in list_devices(kind, self.hostapi)]
+ if any(name == n or name.lower() in n.lower() for n in names):
+ return name
+ self._missing.append(name)
+ return None
+
def restart_engine(self):
if self.engine:
self.engine.stop()
self.engine = None
s = self.s
+ self._missing: list[str] = []
try:
- monitor = s.monitor_device or self._default_monitor()
- self.engine = AudioEngine(s.input_device or None, s.output_device or "virtual", monitor,
- samplerate=SR, blocksize=512, hostapi=self.hostapi)
+ mic = self._present(s.input_device, "input")
+ monitor = self._present(s.monitor_device, "output") or self._default_monitor()
+ output = self._present(s.output_device, "output") or "virtual"
+ self.engine = AudioEngine(mic, output, monitor, samplerate=SR, blocksize=512, hostapi=self.hostapi)
self.apply_toggles(save=False)
self.engine.start()
self.banner.pack_forget()
@@ -472,7 +485,9 @@ class App:
lat = ""
if self.engine.processor is not None:
lat = f" · latency ≈ {1000 * self.engine.processor.latency / SR + self.engine.stream_latency_ms:.0f} ms"
- self.status.set(mic + lat)
+ missing = getattr(self, "_missing", [])
+ note = f" · “{missing[0]}” isn't connected, using the system default" if missing else ""
+ self.status.set(mic + lat + note)
# -------------------------------------------------------------- virtual mic
def install_cable(self):