From cf85fef82821b809c966916c0916f4071a9eeb85 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Mon, 1 May 2023 02:23:50 -0400 Subject: [PATCH] Only attempt to set default voice for the bottle if speechsdk or sapi gets installed. --- audiogame-manager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 9cc6f94..d5e68a7 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -618,7 +618,7 @@ install_wine_bottle() { echo "WINE=\"${WINE}\"" > "$HOME/.local/wine/${bottle}/agm.conf" echo "WINESERVER=\"${WINESERVER}\"" >> "$HOME/.local/wine/${bottle}/agm.conf" # If default voice is set, change it for the bottle - if [[ -n "${defaultVoice}" ]]; then + if [[ -n "${defaultVoice}" ]] && [[ "${*}" =~ (speechsdk|sapi) ]]; then echo "Setting default voice for bottle \"${bottle}\" to \"${defaultVoice}\"." "${0%/*}/speech/set-voice.sh" -b "${bottle}" -r "${defaultRate:-7}" -v "${defaultVoice}" fi