ondemandnavi: Update recipe SRC_URI and HOMEPAGE
[AGL/meta-agl-demo.git] / recipes-demo-hmi / navigation / navigation / 0001-switch-to-alsa-output.patch
1 gpsnavi: Switch to ALSA output
2
3 Update the talk scripts to use ALSA output via gst-launch-1.0 instead
4 of PulseAudio's paplay.  gstreamer is used since it is likely that a
5 further revision will change to a pipewire output sink and add back
6 setting a role property.
7
8 Upstream-Status: Inappropriate [no upstream]
9
10 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
11
12 diff --git a/flite_agl.in b/flite_agl.in
13 index 28b512c..67a09e5 100644
14 --- a/flite_agl.in
15 +++ b/flite_agl.in
16 @@ -1,6 +1,6 @@
17  #!/bin/sh
18  TMP=/tmp/navi.wav
19  echo "$1" | flite_hts_engine -m  @datadir@/Voice/us/cmu_us_arctic_slt.htsvoice -o $TMP
20 -paplay --property='media.role=Navi' $TMP
21 +gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! alsasink
22  rm -f $TMP
23  
24 diff --git a/jtalk_agl.in b/jtalk_agl.in
25 index 76900f4..73c87e5 100644
26 --- a/jtalk_agl.in
27 +++ b/jtalk_agl.in
28 @@ -1,6 +1,6 @@
29  #!/bin/sh
30  TMP=/tmp/navi.wav
31  echo "$1" | open_jtalk -ow $TMP -m @exec_prefix@/share/Voice/mei/mei_normal.htsvoice -x @exec_prefix@/share/dic/
32 -paplay --property='media.role=Navi' $TMP
33 +gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! alsasink
34  rm -f $TMP
35