Add the ability to set speech-dispatcher configuration in settings.conf if desired.

This commit is contained in:
Storm Dragon
2024-02-14 00:45:14 -05:00
parent 9cb652ada4
commit c7f4f546d8
3 changed files with 14 additions and 4 deletions

View File

@ -20,7 +20,7 @@ while pgrep -u "$USER" ^$1 &> /dev/null ; do
if [[ "$wnd_title" =~ $lookfor ]]; then
wnd_title=${BASH_REMATCH[1]}
if [[ "$old_title" != "$wnd_title" ]]; then
spd-say -- "$wnd_title"
spd-say ${spd_module} ${spd_pitch} ${spd_rate} ${spd_voice} ${spd_volume} -- "$wnd_title"
old_title="$wnd_title"
fi
fi