fix(frontend): make overlays accessible and wake word opt-in
This commit is contained in:
@@ -57,6 +57,7 @@ export interface AppState {
|
||||
queuePosition: number;
|
||||
joinDeadline: number;
|
||||
unlock: boolean;
|
||||
wakeWordEnabled: boolean;
|
||||
}
|
||||
|
||||
/** Observable application state; React owns rendering, this object owns session lifetime. */
|
||||
@@ -103,6 +104,7 @@ export class VoiceController {
|
||||
queuePosition: 0,
|
||||
joinDeadline: 0,
|
||||
unlock: false,
|
||||
wakeWordEnabled: false,
|
||||
};
|
||||
}
|
||||
getSnapshot = () => this.state;
|
||||
@@ -261,6 +263,12 @@ export class VoiceController {
|
||||
dismissError() {
|
||||
this.update({ error: "" });
|
||||
}
|
||||
dismissUnlock() {
|
||||
this.update({ unlock: false });
|
||||
}
|
||||
setWakeWordEnabled(wakeWordEnabled: boolean) {
|
||||
this.update({ wakeWordEnabled });
|
||||
}
|
||||
offerAutoStart() {
|
||||
if (this.autoStarted || this.client || !this.state.configReady || this.state.contextLoading) {
|
||||
return;
|
||||
@@ -608,6 +616,7 @@ export class VoiceController {
|
||||
this.updateLevel(0);
|
||||
this.update({
|
||||
status,
|
||||
wakeWordEnabled: false,
|
||||
muted: false,
|
||||
joinDeadline: 0,
|
||||
unlock: false,
|
||||
|
||||
Reference in New Issue
Block a user