Initial support for the cthulhu2speechd plugin added.

This commit is contained in:
Storm Dragon
2026-01-04 21:45:50 -05:00
parent c1f2e47e28
commit a6c54bb158
+5 -1
View File
@@ -112,13 +112,15 @@ EOF
wine reg add "HKCU\\SOFTWARE\\Microsoft\\Speech\\Voices" /v "DefaultTTSRate" /t REG_DWORD /d "7" /f wine reg add "HKCU\\SOFTWARE\\Microsoft\\Speech\\Voices" /v "DefaultTTSRate" /t REG_DWORD /d "7" /f
echo "Set Microsoft Mike as default voice for wine64" echo "Set Microsoft Mike as default voice for wine64"
# Setup nvda2speechd for accessibility # Setup nvda2speechd for accessibility if needed
if ! ss -ltnp | rg 3457 | grep -q 'cthulhu' ]]; then
echo "# Setting up accessibility support..." echo "# Setting up accessibility support..."
download "${nvda2speechdBinary}" download "${nvda2speechdBinary}"
if [[ ! -f "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" ]]; then if [[ ! -f "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" ]]; then
cp "${cache}/nvda2speechd" "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" cp "${cache}/nvda2speechd" "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd"
chmod +x "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd" chmod +x "${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd"
fi fi
fi
echo "# Wine64 bottle creation complete." echo "# Wine64 bottle creation complete."
} | agm_progressbox "Wine Bottle Setup" "Creating unified wine64 bottle with SAPI support (this may take several minutes)..." } | agm_progressbox "Wine Bottle Setup" "Creating unified wine64 bottle with SAPI support (this may take several minutes)..."
@@ -454,9 +456,11 @@ game_launcher() {
source "${scriptDir}/.includes/bottle.sh" source "${scriptDir}/.includes/bottle.sh"
# Start nvda2speechd if available # Start nvda2speechd if available
if ! ss -ltnp | rg 3457 | grep -q 'cthulhu' ]]; then
if [[ -x ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd ]]; then if [[ -x ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd ]]; then
${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &> /dev/null & ${XDG_DATA_HOME:-$HOME/.local/share}/audiogame-manager/nvda2speechd &> /dev/null &
fi fi
fi
# Replace NVDA controller client DLLs in wine64 bottle # Replace NVDA controller client DLLs in wine64 bottle
update_nvda_dlls update_nvda_dlls