Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ members = [
"crates/buzz-pair-relay",
"crates/buzz-relay-mesh",
"crates/buzz-dev-mcp",
"crates/buzz-voice",
"examples/countdown-bot",
]
exclude = ["desktop/src-tauri"]
exclude = ["desktop/src-tauri", "crates/sherpa-onnx-sys"]
resolver = "2"

[workspace.package]
Expand Down Expand Up @@ -170,3 +171,4 @@ strip = true
# allowlist for the auth token). Revert to crates.io once #449 lands upstream.
[patch.crates-io]
aws-creds = { git = "https://github.com/tlongwell-block/rust-s3", rev = "c9fce3620dd434c1f810101d672cf384268dbb0f" }
sherpa-onnx-sys = { path = "crates/sherpa-onnx-sys" }
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ RUN apt-get update \
# locations. The normal runtime strips it below; runtime-debug retains it.
ENV CARGO_PROFILE_RELEASE_DEBUG=line-tables-only
COPY --from=planner /build/recipe.json recipe.json
# The sherpa sys patch keeps its published 1.13.4 version so Cargo can replace
# the registry crate. It is excluded from the workspace recipe because
# cargo-chef masks workspace package versions to 0.0.1.
COPY --from=planner /build/crates/sherpa-onnx-sys crates/sherpa-onnx-sys
# Cook the full workspace recipe — relay deps include workspace siblings, so
# scoping to -p buzz-relay misses transitive deps and re-builds them later.
RUN cargo chef cook --release --recipe-path recipe.json
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.push-gateway
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential pkg-config libssl-dev ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=planner /build/recipe.json recipe.json
# Keep the patched sherpa sys crate at its published version; cargo-chef masks
# workspace package versions, so the patch remains outside the workspace recipe.
COPY --from=planner /build/crates/sherpa-onnx-sys crates/sherpa-onnx-sys
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
RUN cargo build --release --locked -p buzz-push-gateway --bin buzz-push-gateway \
Expand Down
1 change: 1 addition & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ test-unit:
#!/usr/bin/env bash
if command -v cargo-nextest &>/dev/null; then
cargo nextest run -p buzz-core -p buzz-auth --lib
cargo nextest run -p buzz-voice --lib
# buzz-db migrator/lint tests: pure SQL-parsing unit tests (no infra).
# They guard the embedded-migrator invariant (exactly the consolidated
# 0001; cutover/backfill stays an operator script, not startup state)
Expand Down
17 changes: 17 additions & 0 deletions crates/buzz-voice/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "buzz-voice"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Reusable local voice primitives for Buzz"

[features]
default = ["static"]
static = ["sherpa-onnx/static"]
shared = ["sherpa-onnx/shared"]

[dependencies]
serde_json = { workspace = true }
sherpa-onnx = { version = "1.12", default-features = false }
3 changes: 3 additions & 0 deletions crates/buzz-voice/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//! Reusable local voice primitives for Buzz.

pub mod pocket;
Loading
Loading