Provides RHVoice libraries and data for rhvoice-wrapper
Project description
## rhvoice-wrapper-data
[![PyPI version](https://img.shields.io/pypi/v/rhvoice-wrapper-data.svg)](https://pypi.org/project/rhvoice-wrapper-data/) [![Python versions](https://img.shields.io/pypi/pyversions/rhvoice-wrapper-data.svg)](https://pypi.org/project/rhvoice-wrapper-data/) [![PyPI - Format](https://img.shields.io/pypi/format/rhvoice-wrapper-data.svg)](https://pypi.org/project/rhvoice-wrapper-data/) [![Build Status](https://travis-ci.org/Aculeasis/rhvoice-wrapper-data.svg?branch=master)](https://travis-ci.org/Aculeasis/rhvoice-wrapper-data)
Provides RHVoice libraries and data for rhvoice-wrapper. Linux only.
If this package installed, rhvoice-wrapper will automatically use it by default.
## Install
`pip install rhvoice-wrapper-data --only-binary rhvoice-wrapper-data`
## Install from source
First, install dependencies to build:
`apt-get install --no-install-recommends scons build-essential python3-pip python3-setuptools python3-wheel`
Install package from source. This download and build RHVoice and may take many time:
`pip install rhvoice-wrapper-data --no-binary rhvoice-wrapper-data`
## Usage
rhvoice-wrapper will automatically use data path from rhvoice_wrapper_data.
You must set package library path for LD before run python scripts. You may set `LD_LIBRARY_PATH`, this must be works:
```bash
export LD_LIBRARY_PATH=$(pip3 show rhvoice-wrapper-data | grep Location | awk '{print $2}')/rhvoice_wrapper_data/lib/
python3 -u <script using rhvoice_wrapper>
```
#### Get info from library
```python
import rhvoice_wrapper_data
# All the paths will None in error
# Contains path to the RHVoice library
print(rhvoice_wrapper_data.lib_path)
# Contains path to the RHVoice data
print(rhvoice_wrapper_data.data_path)
# Contains path to the RHVoice libraries. Must be set as dynamic libraries path
print(rhvoice_wrapper_data.LIBS_PATH)
# Contains path to the rhvoice-wrapper-data
print(rhvoice_wrapper_data.PATH)
```
## Links
- [RHVoice](https://github.com/Olga-Yakovleva/RHVoice)
- [rhvoice-wrapper](https://github.com/Aculeasis/rhvoice-proxy)
[![PyPI version](https://img.shields.io/pypi/v/rhvoice-wrapper-data.svg)](https://pypi.org/project/rhvoice-wrapper-data/) [![Python versions](https://img.shields.io/pypi/pyversions/rhvoice-wrapper-data.svg)](https://pypi.org/project/rhvoice-wrapper-data/) [![PyPI - Format](https://img.shields.io/pypi/format/rhvoice-wrapper-data.svg)](https://pypi.org/project/rhvoice-wrapper-data/) [![Build Status](https://travis-ci.org/Aculeasis/rhvoice-wrapper-data.svg?branch=master)](https://travis-ci.org/Aculeasis/rhvoice-wrapper-data)
Provides RHVoice libraries and data for rhvoice-wrapper. Linux only.
If this package installed, rhvoice-wrapper will automatically use it by default.
## Install
`pip install rhvoice-wrapper-data --only-binary rhvoice-wrapper-data`
## Install from source
First, install dependencies to build:
`apt-get install --no-install-recommends scons build-essential python3-pip python3-setuptools python3-wheel`
Install package from source. This download and build RHVoice and may take many time:
`pip install rhvoice-wrapper-data --no-binary rhvoice-wrapper-data`
## Usage
rhvoice-wrapper will automatically use data path from rhvoice_wrapper_data.
You must set package library path for LD before run python scripts. You may set `LD_LIBRARY_PATH`, this must be works:
```bash
export LD_LIBRARY_PATH=$(pip3 show rhvoice-wrapper-data | grep Location | awk '{print $2}')/rhvoice_wrapper_data/lib/
python3 -u <script using rhvoice_wrapper>
```
#### Get info from library
```python
import rhvoice_wrapper_data
# All the paths will None in error
# Contains path to the RHVoice library
print(rhvoice_wrapper_data.lib_path)
# Contains path to the RHVoice data
print(rhvoice_wrapper_data.data_path)
# Contains path to the RHVoice libraries. Must be set as dynamic libraries path
print(rhvoice_wrapper_data.LIBS_PATH)
# Contains path to the rhvoice-wrapper-data
print(rhvoice_wrapper_data.PATH)
```
## Links
- [RHVoice](https://github.com/Olga-Yakovleva/RHVoice)
- [rhvoice-wrapper](https://github.com/Aculeasis/rhvoice-proxy)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rhvoice-wrapper-data-0.0.5.tar.gz
(16.9 kB
view hashes)
Close
Hashes for rhvoice-wrapper-data-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04a11ef3ab38082213b1b11191f1cb8b77bdce380d14f63abd8ae964f988471 |
|
MD5 | ba52453fc8df0f1cc6de39f7d407d052 |
|
BLAKE2b-256 | 1ba28158fa7752bba0276b112922da3c76c356c7772e89ae4048594374a3f671 |