Skip to content

Aculeasis/rhvoice-wrapper-bin

Repository files navigation

rhvoice-wrapper-bin

RHVoice PyPI version Python versions PyPI - Format Build

Provides RHVoice libraries for rhvoice-wrapper. Depends on rhvoice-wrapper-data, that contains languages and voices.

If this package installed, rhvoice-wrapper will automatically use it by default.

Install on Linux

This will download and build RHVoice and may take many time

apt-get install --no-install-recommends build-essential python3-pip python3-setuptools python3-wheel libspeechd-dev
pip3 install scons lxml
pip3 install rhvoice-wrapper-bin

Alternatively, you may install auto build wheel packages from github releases (may not work).

Install on Windows

Binary

python3 -m pip install wheel
python3 -m pip install rhvoice-wrapper-bin --only-binary rhvoice-wrapper-bin

Build

Install manually: git, Unicode NSIS and Visual Studio 2015 (2013+ must works)

python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install scons lxml
python3 -m pip install rhvoice-wrapper-bin --no-binary rhvoice-wrapper-bin

Usage

rhvoice-wrapper will automatically use path to library and data path from rhvoice-wrapper-bin (data, of course, provided rhvoice-wrapper-data).

Get info from library

import rhvoice_wrapper_bin
# All the paths will None in error

# Contains path to the RHVoice library
print(rhvoice_wrapper_bin.lib_path)
# Contains path to the RHVoice data
print(rhvoice_wrapper_bin.data_path)
# Contains path to the RHVoice libraries.
print(rhvoice_wrapper_bin.LIBS_PATH)
# Contains path to the rhvoice-wrapper-bin
print(rhvoice_wrapper_bin.PATH)