Skip to content

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

chore(debug): log structured voice STT receipt in roundtrip script

Steven Enamakeldf387cb8aaf7
diff --git a/scripts/debug/web-scripts/voice-stt-roundtrip.mjs b/scripts/debug/web-scripts/voice-stt-roundtrip.mjs
index 4743d75b62..abe2cb9103 100644
--- a/scripts/debug/web-scripts/voice-stt-roundtrip.mjs
+++ b/scripts/debug/web-scripts/voice-stt-roundtrip.mjs
@@ -52,6 +52,12 @@ export default async function voiceSttRoundtrip({ mock, rpc, log }) {
);
}
log(
- "canonical STT RPC returned the mock transcript after posting valid PCM WAV to local mock",
+ `voice STT receipt: ${JSON.stringify({
+ provider: "cloud",
+ transcript: result.text,
+ request_method: request.method,
+ request_path: new URL(request.url, mock.url).pathname,
+ filename: "retained-stt.wav",
+ })}`,
);
}