Skip to content

Commit a1d519c

Browse files
committed
download wakeword models
1 parent 4dbe33c commit a1d519c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎robot_orchestrator/repos/venvs.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ def _build(self, venv_path: Path, release_dir: Path, python_config: PythonRequir
9191

9292
for line in no_deps_lines:
9393
subprocess.run([pip, "install", "--no-deps", line], check=True, capture_output=True, text=True)
94+
if package_name(line).lower() == "openwakeword":
95+
python = str(venv_python(venv_path))
96+
subprocess.run(
97+
[python, "-c", "from openwakeword.utils import download_models; download_models()"],
98+
check=True, capture_output=True, text=True,
99+
)
94100

95101
if rest_lines:
96102
self.wheelhouse.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)