summaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-12-29 21:05:27 -0500
committerScott Murray <scott.murray@konsulko.com>2019-12-30 01:58:35 +0000
commitdc5104d4254c9789a9b1ebce4543f0558e56aaac (patch)
treeb2555bf9bf36d1dbab531c88f3e1bba3681ddc3b /conf.d
parented834a643e3843c0f805ea33363c9f2889d2bab3 (diff)
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 <scott.murray@konsulko.com> Change-Id: I22c7265c2f08ecc0a598fd88ddf4fd53f8c3e880
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/project/etc/vshl-core-api.json7
-rw-r--r--conf.d/wgt/config.xml.in3
2 files changed, 9 insertions, 1 deletions
diff --git a/conf.d/project/etc/vshl-core-api.json b/conf.d/project/etc/vshl-core-api.json
index 9121353..001ac42 100644
--- a/conf.d/project/etc/vshl-core-api.json
+++ b/conf.d/project/etc/vshl-core-api.json
@@ -4,13 +4,18 @@
"uid": "vshl-core",
"version": "1.0",
"api": "vshl-core",
- "info": "High Level Voice Service Core APIs"
+ "info": "High Level Voice Service Core APIs",
+ "require": ["signal-composer"]
},
"onload": [{
"uid": "loadVoiceAgentsConfig",
"info": "Loading the information about voice agents managed by the high level voice service.",
"action": "plugin://vshl-core#loadVoiceAgentsConfig",
+ }, {
+ "uid": "subscribeVoiceTriggerEvents",
+ "info": "Subscribe to voice recognition triggering events.",
+ "action": "plugin://vshl-core#subscribeVoiceTriggerEvents",
}],
"plugins": [{
diff --git a/conf.d/wgt/config.xml.in b/conf.d/wgt/config.xml.in
index 3c0b0a0..ee70db0 100644
--- a/conf.d/wgt/config.xml.in
+++ b/conf.d/wgt/config.xml.in
@@ -17,4 +17,7 @@
<param name="urn:AGL:permission::public:hidden" value="required" />
<param name="urn:AGL:permission::platform:apis:auto-ws" value="required" />
</feature>
+ <feature name="urn:AGL:widget:required-api">
+ <param name="signal-composer" value="ws" />
+</feature>
</widget>