How To Install And Use Wine On CentOS 64 To Implement Microsoft TTS

microsoft tts


Wine is an abbreviation for “Wine Is Not an Emulator”, which means that Wine is not a simulator of any kind. Wine doesn’t emulate any hardware environment, so its performance is much better than virtual machines and containers. In fact, Wine is a translation layer of a system call that is responsible for converting an application’s Windows system calls to Linux system calls. This method will have a certain performance loss, but in fact, newer versions of Windows are compatible with older applications, and similar system call translation layers are introduced in the system, so performance loss is almost negligible.

Let’s take a look at how to install and use Wine in the CentOS system in a virtual environment to implement Microsoft’s TTS text-to-language function.

How To Install And Use Wine On CentOS 64

Install the necessary dependencies

Since Microsoft’s SDK only supports 32-bit, we need to compile 32-bit Wine. However, due to the Centos 64-bit operating system for small C, 32-bit Wine compilation and installation under 64-bit system will depend on 64-bit Wine, so it must be Install 64-bit and 32-bit dependencies. Of course, if you are a 32-bit operating system, you don’t need to install 64-bit Wine, you can directly compile and install 32-bit.

Run the following command in the shell

yum install flex.x86_64 bison.x86_64 glibc-devel.i686 dbus-devel.i686 freetype-devel.i686 pulseaudio-libs-devel.i686 libX11-devel.x86_64 libX11-devel.i686 mesa-libGLU-devel.i686 libICE-devel.i686 libXext-devel.i686 libXcursor-devel.i686 libXi-devel.i686 libXxf86vm-devel.i686 libXrender-devel.i686 libXinerama-devel.i686 libXcomposite-devel.i686 libXrandr-devel.i686 mesa-libGL-devel.i686 mesa-libOSMesa-devel.i686 libxml2-devel.i686 libxslt-devel.i686 zlib-devel.i686 gnutls-devel.i686 ncurses-devel.i686 sane-backends-devel.i686 libv4l-devel.i686 libgphoto2-devel.i686 libexif-devel.i686 lcms2-devel.i686 gettext-devel.i686 isdn4k-utils-devel.i686 cups-devel.i686 fontconfig-devel.i686 gsm-devel.i686 libjpeg-turbo-devel.i686 pkgconfig.i686 libtiff-devel.i686 unixODBC.i686 openldap-devel.i686 alsa-lib-devel.i686 audiofile-devel.i686 freeglut-devel.i686 giflib-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 libXmu-devel.i686 libXxf86dga-devel.i686 libieee1284-devel.i686 libpng-devel.i686 librsvg2-devel.i686 libstdc++-devel.i686 libusb-devel.i686 unixODBC-devel.i686 qt-devel.i686 libpcap-devel.i686 -y

Download the Wine source package

Run the following command in the shell to download the source package for Wine:

cd /root/Downloads/

Compile and install Wine

Run the following command in the shell to compile and install Wine (note that the compilation takes a long time, wait patiently):

tar xjf wine-1.8.7.tar.bz2
cd wine-1.8.7
mkdir -p wine32 wine64
cd wine64
../configure --enable-win64
make -j8

Wait for 64-bit Wine to compile, then compile 32-bit Wine:

cd ../wine32
PKG_CONFIG_PATH=/usr/lib/pkgconfig ../configure --with-wine64=../wine64
make -j8
make install
cd ../wine64 && make install

The 64-bit and 32-bit Wine compilation is installed and then enters the configuration:


WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg

In the process, I always canceled not downloading anything, and finally set the system to win7.

English voice engine required software download:

The installation of the Microsoft TTS engine is divided into two parts, one for the platform interface and one for the voice package. Note that all 32-bit versions are selected for download.

Download the Microsoft TTS voice platform SpeechPlatformRuntime:

The download link is:

Microsoft TTS voice package download (multiple languages to choose from, download what you need, such as English ZiraPro and Chinese Huihui.)

First install the English voice package (MSSpeech_TTS_en-US_ZiraPro.msi). The Chinese voice package (MSSpeech_TTS_zh-CN_HuiHui.msi) does not work properly after installation according to the English voice package installation method. Additional repair steps are required.

Download the voice package:

Download the voice playback software:

Of course, we still need voice playback software after downloading the engine.balabolka
Local direct download link:balcon
The direct download address is the command line version, and the file name is balcon.exe. The software is small in size and does not depend on other Windows components. I have not tested the GUI version.

Put these software in the specified directory:

Place language packages such as balcon.exe, SpeechPlatformRuntime.msi, and MSSpeech_TTS_en-US_ZiraPro.msi in the /usr/local/bin directory.

Download Winetricks

Winetricks is a handy tool script that can be used to download and install the necessary re-issuable runtime libraries when running certain programs via Wine. These runtime libraries may replace some of Wine’s components with some closed source library files. Note that the software downloaded and installed by this script is all 32-bit platform. Even in the case of Wine64, the software installed is 32-bit. Download and install Winetricks by running the following command in the shell:

cd /root/Downloads
chmod 755 winetricks
mv winetricks /usr/local/bin

Install msxml3

The installation file of the TTS engine is in the msi format, so msxml3 is required to let wine handle the msi file correctly. Install msxml3 with winetricks.

Excuting commond

WINEPREFIX=~/.wine32 winetricks msxml3

Install msxml3

Installation language platform

Excuting commond

WINEPREFIX=~/.wine32 wine msiexec /i SpeechPlatformRuntime.msi

Installation language platform

Install language pack

Excuting commond

WINEPREFIX=~/.wine32 wine msiexec /i MSSpeech_TTS_en-US_ZiraPro.msi

Install English language pack

Excuting commond

WINEPREFIX=~/.wine32 wine balcon.exe -k -n en-US -t "Hello world."

Test whether English can be used normally

Installing the other language packs is the same step

Main topics for installing other language packs such as Chinese

After installing the Chinese language pack, you will also need to
chsbrkr.dll (local download:chsbrkr.dll)andchtbrkr.dll(local download:chtbrkr.dll) copy to~/.wine32/drive_c/Program Files/Common Files/Microsoft Shared/Speech/TTS/v11.0/

Delete compiled files

Go to the wine32 and wine64 directories to execute make clean and delete the entire compilation source directory.

0 0 vote
Article Rating
赞(1) 打赏
未经允许不得转载:iemblog » How To Install And Use Wine On CentOS 64 To Implement Microsoft TTS
Notify of
Inline Feedbacks
View all comments





Would love your thoughts, please comment.x