@@ -21,6 +21,8 @@ export async function serveOnSessionBus(daemon) {
|
||||
Arm() { daemon.arm(); }
|
||||
Sleep() { daemon.sleep(); }
|
||||
Shutdown() { daemon.close(); }
|
||||
SetMuted(muted) { daemon.setMuted?.(Boolean(muted)); }
|
||||
SetListening(on) { daemon.setListening?.(Boolean(on)); }
|
||||
PushToTalk(pressed) { daemon.setPushToTalk?.(Boolean(pressed)); }
|
||||
async Say(text) { await daemon.say?.(text); }
|
||||
async Ask(text) { await daemon.ask(text); }
|
||||
@@ -73,6 +75,8 @@ export async function serveOnSessionBus(daemon) {
|
||||
Sleep: { inSignature: '', outSignature: '', method: 'Sleep' },
|
||||
Shutdown: { inSignature: '', outSignature: '', method: 'Shutdown' },
|
||||
PushToTalk: { inSignature: 'b', outSignature: '', method: 'PushToTalk' },
|
||||
SetMuted: { inSignature: 'b', outSignature: '', method: 'SetMuted' },
|
||||
SetListening: { inSignature: 'b', outSignature: '', method: 'SetListening' },
|
||||
Say: { inSignature: 's', outSignature: '', method: 'Say' },
|
||||
Ask: { inSignature: 's', outSignature: '', method: 'Ask' },
|
||||
ResetContext: { inSignature: '', outSignature: '', method: 'ResetContext' },
|
||||
|
||||
Reference in New Issue
Block a user