ondemandnavi: add patches for pipewire and running as non-root
[AGL/meta-agl-demo.git] / recipes-demo-hmi / navigation / ondemandnavi / 0001-switch-to-alsa-output.patch
1 ondemandnavi: Switch to ALSA output
2
3 Update the talk scripts to use ALSA output via gst-launch-1.0 instead
4 of 4A's 4a-play.  gstreamer is used since it is likely that a further
5 revision will change to a pipewire output sink and add back setting a
6 role property.
7
8 Upstream-Status: pending
9
10 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
11
12 diff --git a/package/flite b/package/flite
13 index 4c17b80..c837149 100755
14 --- a/package/flite
15 +++ b/package/flite
16 @@ -1,5 +1,4 @@
17  #!/bin/sh
18  TMP=/tmp/navi.wav
19  echo "$1" | flite_hts_engine -m  /usr/share/Voice/us/cmu_us_arctic_slt.htsvoice -o $TMP
20 -4a-play $TMP hw:0,0,3 navigation
21 -
22 +gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! alsasink
23 diff --git a/package/jtalk b/package/jtalk
24 index ed82281..c075317 100755
25 --- a/package/jtalk
26 +++ b/package/jtalk
27 @@ -1,6 +1,4 @@
28  #!/bin/sh
29  TMP=/tmp/navi.wav
30  echo "$1" | open_jtalk -ow $TMP -m /usr/share/Voice/mei/mei_normal.htsvoice -x /usr/share/dic/
31 -4a-play $TMP hw:0,0,3 navigation
32 -
33 -
34 +gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! alsasink