Tested with Ubuntu focal and winehq-stable
version 7.0.0.0~focal-1
.
Recommended: To avoid side effects, create a new wine prefix and work there.
Decide the CPU architecture to use inside your wineprefix and/or on actual windows target machines.
WINEARCH=win32
anyway because I build inside a
wine prefix in which I run some ancient proprietary abandonware anyway.Collect the files you'll need to install.
Set your wine prefix's windows version to Windows 8:
run winecfg
to GUI-configure it, or winetricks win8
for automatic.
Independen of what mono runtime version your Ubuntu has, your wineprefix
needs exactly version 4.0 of the .NET framework.
Install that. (Might take several minutes.)
You might need to uninstall Mono first (run wine uninstaller
).
An easy way to do both is to install winetricks
and cabextract
,
then run winetricks dotnet40
.
wine uninstaller
),
then run the self-made TTS app from next chapter.
Its error message will list acceptable .NET versions.The above step might have reset your windows version, so make sure it's still Windows 8, adjust if needed.
Install the Runtime:
wine msiexec /i setups/SpeechPlatformRuntime.msi
should start the install dialog.
Install the SDK: msiexec (as above), dialog-powered.
C:\MS_SpeechSDK_v011
.
You'll need DLL files from the SDK's Assembly
subdirectory.Install languages: msiexec (as above), non-interactive.
strace
it.)apt-get install mono-devel mono-mcs mono-runtime
speakArgs.cs
from this repo. It's based on this example code:
https://msdn.microsoft.com/en-us/library/hh378340(v=office.14).aspxMicrosoft.Speech.dll
from the SDK Assembly
subdirectory.
Microsoft.Speech.*
is the server version.
This one I managed to make work in wine.System.Speech.*
is the desktop version.
Trying to use this one in wine made my program crash.
If you'd like to tinker with it anyway,
copy or symlink the System.Speech.dll
from the .NET framework;
in my case it's in this path in wine's C: drive:
windows/Microsoft.NET/Framework/v4.0.30319/WPF/System.Speech.dll
mcs /reference:System.Speech.dll speakArgs.cs
speakArgs.exe
.Run it in wine:
Program Files/Common Files/Microsoft Shared/Speech/Tokens
.wine speakArgs.exe