summaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi/navigation/ondemandnavi
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-demo-hmi/navigation/ondemandnavi')
-rw-r--r--recipes-demo-hmi/navigation/ondemandnavi/0001-switch-to-alsa-output.patch34
-rw-r--r--recipes-demo-hmi/navigation/ondemandnavi/0002-update-permissions.patch22
2 files changed, 56 insertions, 0 deletions
diff --git a/recipes-demo-hmi/navigation/ondemandnavi/0001-switch-to-alsa-output.patch b/recipes-demo-hmi/navigation/ondemandnavi/0001-switch-to-alsa-output.patch
new file mode 100644
index 000000000..a93e8f987
--- /dev/null
+++ b/recipes-demo-hmi/navigation/ondemandnavi/0001-switch-to-alsa-output.patch
@@ -0,0 +1,34 @@
+ondemandnavi: Switch to ALSA output
+
+Update the talk scripts to use ALSA output via gst-launch-1.0 instead
+of 4A's 4a-play. gstreamer is used since it is likely that a further
+revision will change to a pipewire output sink and add back setting a
+role property.
+
+Upstream-Status: pending
+
+Signed-off-by: Scott Murray <scott.murray@konsulko.com>
+
+diff --git a/package/flite b/package/flite
+index 4c17b80..c837149 100755
+--- a/package/flite
++++ b/package/flite
+@@ -1,5 +1,4 @@
+ #!/bin/sh
+ TMP=/tmp/navi.wav
+ echo "$1" | flite_hts_engine -m /usr/share/Voice/us/cmu_us_arctic_slt.htsvoice -o $TMP
+-4a-play $TMP hw:0,0,3 navigation
+-
++gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! alsasink
+diff --git a/package/jtalk b/package/jtalk
+index ed82281..c075317 100755
+--- a/package/jtalk
++++ b/package/jtalk
+@@ -1,6 +1,4 @@
+ #!/bin/sh
+ TMP=/tmp/navi.wav
+ echo "$1" | open_jtalk -ow $TMP -m /usr/share/Voice/mei/mei_normal.htsvoice -x /usr/share/dic/
+-4a-play $TMP hw:0,0,3 navigation
+-
+-
++gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! alsasink
diff --git a/recipes-demo-hmi/navigation/ondemandnavi/0002-update-permissions.patch b/recipes-demo-hmi/navigation/ondemandnavi/0002-update-permissions.patch
new file mode 100644
index 000000000..cff5fa952
--- /dev/null
+++ b/recipes-demo-hmi/navigation/ondemandnavi/0002-update-permissions.patch
@@ -0,0 +1,22 @@
+ondemandnavi: Update permissions
+
+Add the new display and audio permissions required with the change to
+running as non-root.
+
+Upstream-Status: pending
+
+Signed-off-by: Scott Murray <scott.murray@konsulko.com>
+
+diff --git a/package/config.xml b/package/config.xml
+index ae5c1f6..10b2d99 100755
+--- a/package/config.xml
++++ b/package/config.xml
+@@ -13,6 +13,8 @@
+ <feature name="urn:AGL:widget:required-permission">
+ <param name="urn:AGL:permission::public:no-htdocs" value="required"/>
+ <param name="http://tizen.org/privilege/internal/dbus" value="required"/>
++ <param name="urn:AGL:permission::public:display" value="required" />
++ <param name="urn:AGL:permission::public:audio" value="required" />
+ </feature>
+ </widget>
+