From dc5104d4254c9789a9b1ebce4543f0558e56aaac Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Sun, 29 Dec 2019 21:05:27 -0500 Subject: Add signal-composer voice event support Add support for triggering listening (push-to-talk/PTT) via the signal-composer "event.voice" event. This enables PTT from the steering wheel for the CES demo. Note that this relies on a fix to signal-composer to add the session context uuid to the replies from event subscribe calls. Without that, it's not feasible to catch the signal-composer events with the libappcontroller event scheme and some more significant rework would be required. Bug-AGL: SPEC-3048 Signed-off-by: Scott Murray Change-Id: I22c7265c2f08ecc0a598fd88ddf4fd53f8c3e880 --- src/plugins/VshlCoreApi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/VshlCoreApi.h') diff --git a/src/plugins/VshlCoreApi.h b/src/plugins/VshlCoreApi.h index eb90190..7c5bf69 100644 --- a/src/plugins/VshlCoreApi.h +++ b/src/plugins/VshlCoreApi.h @@ -29,7 +29,9 @@ int onConnectionStateEvent(CtlSourceT* source, json_object* argsJ, json_object* int onDialogStateEvent(CtlSourceT* source, json_object* argsJ, json_object* queryJ); int onLoginPairReceivedEvent(CtlSourceT* source, json_object* argsJ, json_object* queryJ); int onLoginPairExpiredEvent(CtlSourceT* source, json_object* argsJ, json_object* queryJ); +int onVoiceTriggerEvent(CtlSourceT* source, json_object* argsJ, json_object* queryJ); int loadVoiceAgentsConfig(CtlSourceT* source, json_object* argsJ, json_object* queryJ); +int subscribeVoiceTriggerEvents(CtlSourceT* source, json_object* argsJ, json_object* queryJ); int startListening(CtlSourceT* source, json_object* argsJ, json_object* queryJ); int cancelListening(CtlSourceT* source, json_object* argsJ, json_object* queryJ); int enumerateVoiceAgents(CtlSourceT* source, json_object* argsJ, json_object* queryJ); -- cgit 1.2.3-korg