Pause playback while transmitting and declare microphone use.

macOS refuses capture without a usage string, and queued remote audio was still handed to the speaker after push-to-talk began.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Konrad Neitzel
2026-10-03 16:32:01 +02:00
co-authored by Cursor
parent 9c4f6621fc
commit 6233292931
9 changed files with 44 additions and 15 deletions
-10
View File
@@ -84,15 +84,5 @@ window.addEventListener("keyup", function (event) {
}
});
window.addEventListener("blur", function () {
spaceHeld = false;
const app = api();
if (!app) {
return;
}
app.ReleaseButton();
app.ReleaseSpace();
});
setInterval(refresh, 100);
refresh();