-
Notifications
You must be signed in to change notification settings - Fork 0
Add speech detection #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,7 +61,7 @@ depends = ["ruff-fix"] | |
| description = "Apply Python lint-fix passes" | ||
|
|
||
| [tasks."test:python"] | ||
| depends = ["test-pyeye1", "test-pyface1"] | ||
| depends = ["test-pyeye1", "test-pyface1", "test-pyspeech1"] | ||
| description = "Run Python tests" | ||
|
|
||
| [tasks.test-pyeye1] | ||
|
|
@@ -76,6 +76,11 @@ dir = "services/ws-modules/pyface1" | |
| env = { UV_PYTHON = "{% if os() == 'windows' %}{{ vars.py3_win }}{% else %}{{ vars.py3_unix }}{% endif %}" } | ||
| run = "uv run pytest" | ||
|
|
||
| [tasks.test-pyspeech1] | ||
| dir = "services/ws-modules/pyspeech1" | ||
| env = { UV_PYTHON = "{% if os() == 'windows' %}{{ vars.py3_win }}{% else %}{{ vars.py3_unix }}{% endif %}" } | ||
| run = "uv run pytest" | ||
|
|
||
| [tasks.build-et-ws-wheel] | ||
| depends = ["build-et-cli"] | ||
| description = "Build the generated et-ws Python package as a wheel + ws-module pkg/" | ||
|
|
@@ -143,6 +148,17 @@ uv build --wheel --out-dir pkg | |
| """ | ||
| shell = "bash -euo pipefail -c" | ||
|
|
||
| [tasks.build-ws-pyspeech1-module] | ||
| depends = ["build-et-ws-wheel"] | ||
| description = "Build the pyspeech1 Python Silero VAD workflow module" | ||
| dir = "services/ws-modules/pyspeech1" | ||
| run = """ | ||
| rm -f pkg/*.whl | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win Use the mise-managed coreutils for wheel cleanup. Line 156 invokes an unqualified As per path instructions, mise task bodies must use mise-managed tools rather than assuming host utilities; use 🤖 Prompt for AI AgentsSource: Path instructions |
||
| uv build --wheel --out-dir pkg | ||
| {{ vars.et_cli }} module-package-json | ||
| """ | ||
| shell = "bash -euo pipefail -c" | ||
|
|
||
| [tasks.build-ws-wasi-graphics-info-module] | ||
| depends = ["build-et-cli"] | ||
| description = "Build the WASI graphics-info Python module as a WASI Preview 2 component" | ||
|
|
@@ -175,6 +191,7 @@ run = """ | |
| uv sync --directory services/ws-modules/pydata1 | ||
| uv sync --directory services/ws-modules/pyeye1 | ||
| uv sync --directory services/ws-modules/pyface1 | ||
| uv sync --directory services/ws-modules/pyspeech1 | ||
| """ | ||
| shell = "bash -euo pipefail -c" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "description": "FP16 ONNX speech detection model", | ||
| "license": "MIT", | ||
| "name": "et-model-speech1", | ||
| "version": "0.1.0", | ||
| "files": ["speech1.onnx"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| *.whl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Correct the coverage configuration section name.
The comment refers to
config/coverage.toml's[paths]section, but the actual section is[tool.coverage.paths]. Update the reference to avoid sending maintainers to a nonexistent section.🤖 Prompt for AI Agents