SAPI5 TTS doesn't work on Wine 3.0.1

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ardouronerous
Newbie
Newbie
Posts: 2
Joined: Sat Jun 02, 2018 12:37 am

SAPI5 TTS doesn't work on Wine 3.0.1

Post by ardouronerous »

I'm running Wine 2.0.5 via PlayOnLinux to run Balabolka and SAPI5 TTS, because SAPI5 TTS doesn't work on Wine 3.0 and 3.0.1.

On the attached screenshot, Balabolka is running on Wine 2.0.5 via PlayOnLinux and SAPI5 voice Microsoft Mary is clearly visible, but when tested on Wine 3.0 and Wine 3.0.1, SAPI5 voices are not available.
Attachments
TTS reader Balabolka running on Wine 2.0.5 via PlayOnLinux
TTS reader Balabolka running on Wine 2.0.5 via PlayOnLinux
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: SAPI5 TTS doesn't work on Wine 3.0.1

Post by dimesio »

Presumably the PoL script installed native SAPI for you. You can install native SAPI in plain Wine with winetricks.
ardouronerous
Newbie
Newbie
Posts: 2
Joined: Sat Jun 02, 2018 12:37 am

Re: SAPI5 TTS doesn't work on Wine 3.0.1

Post by ardouronerous »

I've installed SAPI5 through here: http://www.webaloud.com/files/Microsoft ... TTS-51.msi

And I also found this bu report: https://bugs.winehq.org/show_bug.cgi?id=44386
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: SAPI5 TTS doesn't work on Wine 3.0.1

Post by Bob Wya »

ardouronerous wrote:I've installed SAPI5 through here: http://www.webaloud.com/files/Microsoft ... TTS-51.msi
And I also found this bug report: https://bugs.winehq.org/show_bug.cgi?id=44386
@ardouronerous

Have you tested in a clean 32-bit WINEPREFIX, using the winetricks verb:

Code: Select all

winetricks speechsdk
Making sure you have an up-to-date copy of the winetricks script:

Code: Select all

winetricks --version
20180603 - sha256sum: 64c3325112802f46425051cbe15ec3693c5568d76419e0ef8bb6aec76977a128
Bob

NB winetricks uses a lot of workarounds, that you probably haven't:

Code: Select all

load_speechsdk()
{
    # https://www.microsoft.com/en-us/download/details.aspx?id=10121
    w_download https://download.microsoft.com/download/B/4/3/B4314928-7B71-4336-9DE7-6FA4CF00B7B3/SpeechSDK51.exe 520aa5d1a72dc6f41dc9b8b88603228ffd5d5d6f696224fc237ec4828fe7f6e0

    w_try_unzip "$W_TMP" "$W_CACHE"/speechsdk/SpeechSDK51.exe

    # Otherwise it only installs the SDK and not the redistributable:
    w_set_winver win2k

    # Only added in wine-2.18
    for stub in "$W_SYSTEM32_DLLS/Speech/Common/sapi.dll" "$W_SYSTEM64_DLLS/Speech/Common/sapi.dll"; do
        if [ -f "$stub" ]; then
            w_try rm "$stub"
        fi
    done

    w_try_cd "$W_TMP"
    w_try "$WINE" msiexec /i "Microsoft Speech SDK 5.1.msi" $W_UNATTENDED_SLASH_Q

    # If sapi.dll isn't in original location, applications won't start, see
    # e.g., https://bugs.winehq.org/show_bug.cgi?id=43841
    w_try ln -s "$W_COMMONFILES_X86/Microsoft Shared/Speech/sapi.dll" "$W_32BIT_DLLS/Speech/Common"

    w_override_dlls native sapi

    w_unset_winver
}
natanprog
Newbie
Newbie
Posts: 1
Joined: Sun Mar 10, 2019 11:24 pm

Re: SAPI5 TTS doesn't work on Wine 3.0.1

Post by natanprog »

latest version that sapi 5 runs 2.17
2.18 and newer, sapi 5 does not work

https://www.winehq.org/announce/2.18

how can I disable these changes in sapi made in version 2.18 of wine?
Locked