Final winespeak setup in place.

This commit is contained in:
Storm Dragon committed 2026-08-29 14:25:41 -04:00
1 parent 850cd37364
commit 4f11130369
3 files changed
+12 -12

No files matched your search

+5 -5
View File
@@ -72,15 +72,15 @@ winetricks() {
install_winespeak() {
local installerName="winespeak.exe"
local installerPath="${cache}/${installerName}"
local installerSha256="c8cda716739eaf883b5eb43dd97e8a1c827681e6c327375ad8a4fa8e996870b4"
local installerSha256="8007004cd024b391e8f1962455ffe2a8b241cfdf52641a2bc1aa2274bc80f236"
local wrapperPath="${WINEPREFIX}/drive_c/Program Files (x86)/espeak-ng-sapi/EspeakSAPI.dll"
local wrapperSha256="855bbb8b3fb8e78d87170eb2ef931565df897441331281d36ef8f97660691b04"
local wrapperSha256="2282da4a23f18b40e6601a4b9a880f484196bf2f5138881e76428be10d8dbe76"
local cscriptPath="${WINEPREFIX}/drive_c/windows/syswow64/cscript.exe"
local verifyScriptPath="${WINEPREFIX}/drive_c/windows/temp/verify_winespeak.vbs"
local actualSha256
local registryOutput
local voiceOutput
local defaultToken='HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\TokenEnums\eSpeak-NG\English (America)'
local defaultToken='HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\Espeak-ng US English'
if [[ -z "${wineSpeakInstaller:-}" ]]; then
echo "WineSpeak download URL is not configured."
@@ -131,13 +131,13 @@ EOF
echo "$voiceOutput"
return 1
fi
if ! grep -Fq "English (America)" <<< "$voiceOutput"; then
if ! grep -Fq "Espeak-ng US English" <<< "$voiceOutput"; then
echo "WineSpeak's 32-bit SAPI verification returned an unexpected voice."
echo "$voiceOutput"
return 1
fi
echo "WineSpeak English (America) is the default SAPI voice."
echo "WineSpeak US English is the default SAPI voice."
}
install_rhvoice() {