forked from Blendman974/faceclaw
Add microphone support on RayNeo iO
This commit is contained in:
1 parent
fde847a31a
commit
9ddd4c4d03
13 files changed
+407
-5
No files matched your search
@@ -679,6 +679,9 @@ export class FaceclawCommunicatorBridge {
|
||||
return this.enqueueNativeCall(() => Boolean(this.communicator.setFaceclawWakeLeaseEnabledEnabled(Boolean(enabled))));
|
||||
}
|
||||
|
||||
/** The RayNeo iO's wake word; iOS doesn't drive an iO, so nothing to do. */
|
||||
async setVoiceWakeEnabled(_enabled: boolean): Promise<void> {}
|
||||
|
||||
async awaitEvenHubSessionReady(timeoutMs: number): Promise<boolean> {
|
||||
return this.enqueueNativeCall(() => Boolean(this.communicator.awaitEvenHubSessionReadyTimeoutMs(Math.round(nonNegativeNumber(timeoutMs)))));
|
||||
}
|
||||
|
||||
@@ -734,6 +734,14 @@ export class FaceclawCommunicatorBridge {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the glasses' own wake word reaches Faceclaw: on a RayNeo iO, its
|
||||
* "Hey RayNeo" switch (G2 glasses use the wake lease above instead).
|
||||
*/
|
||||
async setVoiceWakeEnabled(enabled: boolean): Promise<void> {
|
||||
await this.enqueueJavaCall(() => this.communicator.setVoiceWakeEnabled(enabled));
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve only once the recreated layout and retained frame
|
||||
* are visible. CFW's deferred-dashboard READY is emitted from this barrier.
|
||||
|
||||
Reference in new issue
Block a user