X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=recipes-demo-hmi%2Fnavigation%2Fnavigation%2F0001-switch-to-pipewire-output.patch;fp=recipes-demo-hmi%2Fnavigation%2Fnavigation%2F0001-switch-to-alsa-output.patch;h=53c1165d3f16c747d2db76eec5bf2ecad0abb822;hb=6f3f6139089e2f283b785bb31a222e1290d12eb0;hp=4ce9a430adfbb069cd4ec8d0d5448e8d78256838;hpb=3aeb2b2f702ace67cf346cfa0fa6213017c16abe;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-demo-hmi/navigation/navigation/0001-switch-to-alsa-output.patch b/recipes-demo-hmi/navigation/navigation/0001-switch-to-pipewire-output.patch similarity index 64% rename from recipes-demo-hmi/navigation/navigation/0001-switch-to-alsa-output.patch rename to recipes-demo-hmi/navigation/navigation/0001-switch-to-pipewire-output.patch index 4ce9a430a..53c1165d3 100644 --- a/recipes-demo-hmi/navigation/navigation/0001-switch-to-alsa-output.patch +++ b/recipes-demo-hmi/navigation/navigation/0001-switch-to-pipewire-output.patch @@ -1,16 +1,15 @@ -gpsnavi: Switch to ALSA output +gpsnavi: Switch to pipewire output -Update the talk scripts to use ALSA output via gst-launch-1.0 instead -of PulseAudio's paplay. 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. +Update the talk scripts to use pipewire output via gst-launch-1.0 +instead of PulseAudio's paplay. gstreamer is used to allow using the +pipewire output sink and set its media role property. Upstream-Status: Inappropriate [no upstream] Signed-off-by: Scott Murray diff --git a/flite_agl.in b/flite_agl.in -index 28b512c..67a09e5 100644 +index 28b512c..be41d66 100644 --- a/flite_agl.in +++ b/flite_agl.in @@ -1,6 +1,6 @@ @@ -18,11 +17,11 @@ index 28b512c..67a09e5 100644 TMP=/tmp/navi.wav echo "$1" | flite_hts_engine -m @datadir@/Voice/us/cmu_us_arctic_slt.htsvoice -o $TMP -paplay --property='media.role=Navi' $TMP -+gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! alsasink ++gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! pwaudiosink stream-properties="p,media.role=Navigation" rm -f $TMP diff --git a/jtalk_agl.in b/jtalk_agl.in -index 76900f4..73c87e5 100644 +index 76900f4..0ca6975 100644 --- a/jtalk_agl.in +++ b/jtalk_agl.in @@ -1,6 +1,6 @@ @@ -30,6 +29,6 @@ index 76900f4..73c87e5 100644 TMP=/tmp/navi.wav echo "$1" | open_jtalk -ow $TMP -m @exec_prefix@/share/Voice/mei/mei_normal.htsvoice -x @exec_prefix@/share/dic/ -paplay --property='media.role=Navi' $TMP -+gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! alsasink ++gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audioresample ! pwaudiosink stream-properties="p,media.role=Navigation" rm -f $TMP