forked from Blendman974/faceclaw
First-pass G2 microphone streaming support
This commit is contained in:
1 parent
c28b321705
commit
9996b09e9c
13 files changed
+493
-113
No files matched your search
@@ -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) => {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user