🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

espeakng-loader

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

espeakng-loader

A Python package that provides shared library loader for eSpeak NG

0.2.4
PyPI
Maintainers
1

espeakng-loader

This package loads the espeak-ng shared library so it will be available for other libraries.

Platforms

  • Linux (x86-64, arm64)
  • Windows (x86-64, arm64)
  • macOS (x86-64, arm)

Install

pip install espeakng-loader

Usage

from espeakng_loader import get_library_path, load_library, make_library_available

library_path = get_library_path() # Pass it to the library
# Or use load_library() for load it directly
# Or use make_library_available() for making it available for other libraries

Usage with phonemizer

Note: please use phonemizer-fork instead of phonemizer package until #191 merged.

from phonemizer.backend.espeak.wrapper import EspeakWrapper
from phonemizer import phonemize
import espeakng_loader

EspeakWrapper.set_library(espeakng_loader.get_library_path())
EspeakWrapper.set_data_path(espeakng_loader.get_data_path())

phonemes = phonemize('Hello')
print('Phonemes: ', phonemes)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts