Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(voice): add tinyjuice-bus dependency and update VAD event assertion\n\nAdd the tinyjuice-bus crate as a dependency and update the voice test assertion to match the new IndexedVadEvent structure, which wraps VAD events with an index field for tracking event ordering.\n\nAuto-committed-on: dragonfly\n

Steven Enamakel6bddf60672db
diff --git a/Cargo.lock b/Cargo.lock
index 98f03e0338..0fa99ccf1b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4185,6 +4185,7 @@ dependencies = [
"tinyflows",
"tinyhosts",
"tinyhumans-sdk",
+ "tinyjuice-bus",
"tinymcp",
"tinymcp-bus",
"tinymemory",
@@ -6512,6 +6513,13 @@ dependencies = [
"url",
]
+[[package]]
+name = "tinyjuice-bus"
+version = "0.2.2"
+dependencies = [
+ "serde",
+]
+
[[package]]
name = "tinymcp"
version = "0.3.1"
diff --git a/src/openhuman/modules/voice_tests.rs b/src/openhuman/modules/voice_tests.rs
index f9a6335fc0..12e31f1056 100644
--- a/src/openhuman/modules/voice_tests.rs
+++ b/src/openhuman/modules/voice_tests.rs
@@ -288,7 +288,13 @@ async fn the_published_module_answers_through_this_client() {
.await
.expect("VadPush");
assert!(
- matches!(events.as_slice(), [super::VadEvent::SpeechStart { .. }]),
+ matches!(
+ events.as_slice(),
+ [super::IndexedVadEvent {
+ event: super::VadEvent::SpeechStart,
+ ..
+ }]
+ ),
"expected a single speech start, got {events:?}"
);
assert!(session.is_speaking(&config).await.expect("is_speaking"));