Skip to main content

A Python wrapper for the goruut phonemization tool

Project description

pygoruut

Getting started

from pygoruut.pygoruut import Pygoruut

pygoruut = Pygoruut()

print(pygoruut.phonemize(language="English", sentence="hello world"))

# Prints:
# PhonemeResponse(Words=[
#  Word(CleanWord='hello', Phonetic='hˈɛlloʊ'),
#  Word(CleanWord='world', Phonetic='wˈɔɹˈɛd')])

# Now, convert it back

print(pygoruut.phonemize(language="English", sentence="hɛlloʊ wɔɹɛd", is_reverse=True))

# Prints:
# PhonemeResponse(Words=[
#  Word(CleanWord='hɛlloʊ', Phonetic='hello'),
#  Word(CleanWord='wɔɹɛd', Phonetic='wored')])

The quality of translation varies accros the 85 supported languages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygoruut-0.2.4.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygoruut-0.2.4-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file pygoruut-0.2.4.tar.gz.

File metadata

  • Download URL: pygoruut-0.2.4.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pygoruut-0.2.4.tar.gz
Algorithm Hash digest
SHA256 fc365347f3a1dd142f832a74abcac96730f67276cfda84b3202c2d2112c98e29
MD5 3a36e3f9342c7c4a075a684a3d6d4c24
BLAKE2b-256 7e20579007befddc097daedc998f6a704dc9a040c906a56b15a1a328e5cd2ced

See more details on using hashes here.

File details

Details for the file pygoruut-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: pygoruut-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pygoruut-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2487af8e2d6717f81cc2936bdb69e44ef4e556e227866eb7c5a8ea461ae5e4c6
MD5 6bc7297c68c9dbca8db53401c450da35
BLAKE2b-256 ed20fcd42401b02c5e946c79dec6e7feb3a8886ecb6bd01c3a136e51dee1b02b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page