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
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
pygoruut-0.2.4.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pygoruut-0.2.4-py3-none-any.whl
(13.4 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc365347f3a1dd142f832a74abcac96730f67276cfda84b3202c2d2112c98e29
|
|
| MD5 |
3a36e3f9342c7c4a075a684a3d6d4c24
|
|
| BLAKE2b-256 |
7e20579007befddc097daedc998f6a704dc9a040c906a56b15a1a328e5cd2ced
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2487af8e2d6717f81cc2936bdb69e44ef4e556e227866eb7c5a8ea461ae5e4c6
|
|
| MD5 |
6bc7297c68c9dbca8db53401c450da35
|
|
| BLAKE2b-256 |
ed20fcd42401b02c5e946c79dec6e7feb3a8886ecb6bd01c3a136e51dee1b02b
|