First-pass G2 microphone streaming support

This commit is contained in:
James Babcock committed 2026-04-30 20:00:16 -07:00
1 parent c28b321705
commit 9996b09e9c
13 files changed
+493 -113

No files matched your search

+4
View File
@@ -216,6 +216,10 @@ export class FaceclawCommunicatorBridge {
return () => this.frameMetricsListeners.delete(listener);
}
getNativeCommunicator(): any {
return this.communicator;
}
waitForNextFrameMetrics(timeoutMs: number): Promise<FrameMetrics | null> {
const delayMs = Math.max(1, Math.round(nonNegativeNumber(timeoutMs)));
return new Promise((resolve) => {
+4 -1
View File
@@ -25,9 +25,12 @@ export class FaceclawVoiceControlBridge {
return () => this.wakeWordListeners.delete(listener);
}
start(): void {
start(communicator?: any): void {
if (this.started || !global.isAndroid) return;
this.ensureController();
if (communicator) {
this.controller?.setCommunicator(communicator);
}
this.started = true;
this.controller?.start();
}