pygoruut


Namepygoruut JSON
Version 0.3.0 PyPI version JSON
download
home_pagehttps://github.com/neurlang/pygoruut
SummaryA Python wrapper for the goruut phonemization tool
upload_time2025-02-09 17:07:17
maintainerNone
docs_urlNone
authorNeurlang Project
requires_python>=3.6
licenseMIT License Copyright (c) 2024 neurlang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords goruut phonemization tts
VCS
bugtrack_url
requirements requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pygoruut

## Getting started

```
from pygoruut.pygoruut import Pygoruut

pygoruut = Pygoruut()

print(pygoruut.phonemize(language="English", sentence="fast racing car"))

# Prints:
# PhonemeResponse(Words=[
#  Word(CleanWord='fast', Phonetic='fəst'),
#  Word(CleanWord='racing', Phonetic='ɹəkɪŋ'),
#  Word(CleanWord='car', Phonetic='kəɹ')])

# Now, convert it back

print(pygoruut.phonemize(language="English", sentence="fəst ɹəkɪŋ kəɹ", is_reverse=True))

# Prints:
# PhonemeResponse(Words=[
#  Word(CleanWord='fəst', Phonetic='fast'),
#  Word(CleanWord='ɹəkɪŋ', Phonetic='racing'),
#  Word(CleanWord='kəɹ', Phonetic='car')])

```

### Uyghur language, our highest quality language

```
print(pygoruut.phonemize(language="Uyghur", sentence="قىزىل گۈل ئاتا"))

# Prints:
# PhonemeResponse(Words=[
#  Word(CleanWord='قىزىل', Phonetic='qizil'),
#  Word(CleanWord='گۈل', Phonetic='gyl'),
#  Word(CleanWord='ئاتا', Phonetic='ʔɑtɑ')])

# Now, convert it back

print(pygoruut.phonemize(language="Uyghur", sentence="qizil gyl ʔɑtɑ", is_reverse=True))

# Prints:
# PhonemeResponse(Words=[
#  Word(CleanWord='qizil', Phonetic='قىزىل'),
#  Word(CleanWord='gyl', Phonetic='گۈل'),
#  Word(CleanWord='ʔɑtɑ', Phonetic='ئاتا')])

```

The quality of translation varies accros the 85 supported languages.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/neurlang/pygoruut",
    "name": "pygoruut",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "goruut, phonemization, tts",
    "author": "Neurlang Project",
    "author_email": "Neurlang Project <77860779+neurlang@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/5a/cc/25e69337d52fa62fc6923835b2339cfdbe3f3dd1ca6b3d96c14dfc5ecea5/pygoruut-0.3.0.tar.gz",
    "platform": null,
    "description": "# pygoruut\n\n## Getting started\n\n```\nfrom pygoruut.pygoruut import Pygoruut\n\npygoruut = Pygoruut()\n\nprint(pygoruut.phonemize(language=\"English\", sentence=\"fast racing car\"))\n\n# Prints:\n# PhonemeResponse(Words=[\n#  Word(CleanWord='fast', Phonetic='f\u0259st'),\n#  Word(CleanWord='racing', Phonetic='\u0279\u0259k\u026a\u014b'),\n#  Word(CleanWord='car', Phonetic='k\u0259\u0279')])\n\n# Now, convert it back\n\nprint(pygoruut.phonemize(language=\"English\", sentence=\"f\u0259st \u0279\u0259k\u026a\u014b k\u0259\u0279\", is_reverse=True))\n\n# Prints:\n# PhonemeResponse(Words=[\n#  Word(CleanWord='f\u0259st', Phonetic='fast'),\n#  Word(CleanWord='\u0279\u0259k\u026a\u014b', Phonetic='racing'),\n#  Word(CleanWord='k\u0259\u0279', Phonetic='car')])\n\n```\n\n### Uyghur language, our highest quality language\n\n```\nprint(pygoruut.phonemize(language=\"Uyghur\", sentence=\"\u0642\u0649\u0632\u0649\u0644 \u06af\u06c8\u0644 \u0626\u0627\u062a\u0627\"))\n\n# Prints:\n# PhonemeResponse(Words=[\n#  Word(CleanWord='\u0642\u0649\u0632\u0649\u0644', Phonetic='qizil'),\n#  Word(CleanWord='\u06af\u06c8\u0644', Phonetic='gyl'),\n#  Word(CleanWord='\u0626\u0627\u062a\u0627', Phonetic='\u0294\u0251t\u0251')])\n\n# Now, convert it back\n\nprint(pygoruut.phonemize(language=\"Uyghur\", sentence=\"qizil gyl \u0294\u0251t\u0251\", is_reverse=True))\n\n# Prints:\n# PhonemeResponse(Words=[\n#  Word(CleanWord='qizil', Phonetic='\u0642\u0649\u0632\u0649\u0644'),\n#  Word(CleanWord='gyl', Phonetic='\u06af\u06c8\u0644'),\n#  Word(CleanWord='\u0294\u0251t\u0251', Phonetic='\u0626\u0627\u062a\u0627')])\n\n```\n\nThe quality of translation varies accros the 85 supported languages.\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2024 neurlang\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.\n        ",
    "summary": "A Python wrapper for the goruut phonemization tool",
    "version": "0.3.0",
    "project_urls": {
        "Homepage": "https://github.com/neurlang/pygoruut"
    },
    "split_keywords": [
        "goruut",
        " phonemization",
        " tts"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9302f2ab5e8d9128e977d329d7459af84621688b92356351035de948671846e0",
                "md5": "1c0deee3798e7f4d80503fbfd9c7e255",
                "sha256": "23cf8ad065b76216ad95dbfcbb5b6ab431240ba17c64256a2aefe53891837488"
            },
            "downloads": -1,
            "filename": "pygoruut-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1c0deee3798e7f4d80503fbfd9c7e255",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 14430,
            "upload_time": "2025-02-09T17:07:15",
            "upload_time_iso_8601": "2025-02-09T17:07:15.359907Z",
            "url": "https://files.pythonhosted.org/packages/93/02/f2ab5e8d9128e977d329d7459af84621688b92356351035de948671846e0/pygoruut-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5acc25e69337d52fa62fc6923835b2339cfdbe3f3dd1ca6b3d96c14dfc5ecea5",
                "md5": "f683f609c04904fef608e4b6a8f389cc",
                "sha256": "f0b8e18093427d935b9f182ad655f6699dd252b899f28da56ccdeea72952f2e8"
            },
            "downloads": -1,
            "filename": "pygoruut-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f683f609c04904fef608e4b6a8f389cc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 16351,
            "upload_time": "2025-02-09T17:07:17",
            "upload_time_iso_8601": "2025-02-09T17:07:17.013502Z",
            "url": "https://files.pythonhosted.org/packages/5a/cc/25e69337d52fa62fc6923835b2339cfdbe3f3dd1ca6b3d96c14dfc5ecea5/pygoruut-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-09 17:07:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "neurlang",
    "github_project": "pygoruut",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.32.3"
                ]
            ]
        }
    ],
    "lcname": "pygoruut"
}
        
Elapsed time: 0.40976s