{ "info": { "author": "Ozymandias", "author_email": "tomas.rav@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: C", "Programming Language :: C++", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Multimedia :: Sound/Audio :: Sound Synthesis", "Topic :: Multimedia :: Sound/Audio :: Speech" ], "description": "# [LIEPA](https://www.ra\u0161tija.lt/liepa)\n\n#### Lietuvi\u0173 \u0161neka valdomos paslaugos (Lithuanian speech controlled services)\n\nThis project aims to provide high quality digital Lithuanian speech services\nfor free.\nSo far there are several services provided at various stages of completeness,\nsuch as Lithuanian speech recognizer and Lithuanian speech synthesizer.\n\nThis package wraps the latter.\n\n## Dependencies\n\nFor this package (liepa-tts) to work you need synthesizer binaries which you'll\nhave to compile yourself.\n\nThe original sources can be acquired [here](http://liepaatnaujinimai.rastija.lt/sintezatorius/SintezesVariklis_LIEPAprojektas.zip)\n\nTo make it easier to build binaries for platforms other than Windows you can\nacquire fixed-up sources here: [laba-diena-tts](https://github.com/OzymandiasTheGreat/laba-diena-tts)\n\nOnce you build binaries from the native-modules subtree make sure they are\navailable on LIBRARY_PATH (for building) and LD_LIBRARY_PATH (for runtime).\n\n## Installation\n\nI highly recommend [Poetry](https://poetry.eustace.io/)\n\n`poetry add liepa-tts`\n\nIf you must, use pip:\n\n`pip install liepa-tts`\n\nYou need numpy available for building C extension, so if you get errors first install that:\n\n`pip install numpy`\n\n## Usage\n\n```python\nfrom liepa_tts import liepa\n\n# All strings must be encoded with Windows Baltic encoding\nENCODING = \"cp1257\"\n\n# First parameter is the path to data directory\n# Second parameter is the path to voice directory\n# All paths must include trailing slash\n# Returns error code\nliepa.init(\"data/\".encode(ENCODING), \"data/Edvardas/\".encode(ENCODING))\n\n# Parameters:\n# text: String that will be syntesized\n# outSize: Integer. Typically this takes ~3072 per phoneme (letter), if it's too small you'll get buffer overflow errors\n# speed: Integer. The larger the value the slower the voice will talk. Can be negative.\n# tone: Integer. The pitch. Larger values make for higher pitch. Can be negative.\n# Returns tuple (error code, ndarray). ndarray contains wav data without headers as array of integers.\ntext = \"Laba diena. Kaip jums sekasi?\".encode(ENCODING)\nerr, buff = liepa.synth(text, len(text) * 3072, 100, 0)\n\n# Parameters:\n# buff: The ndarray returned by liepa.synth() method\n# filename: encoded path to output file\nliepa.toWav(buff, \"test.wav\".encode(ENCODING))\n\n# Call this when you're done to free resources\nliepa.unload()\n```\n\n##### Notes:\n\nError codes produces by the synthesizer are defined in\n`include/LithUSS_Error.h` so if you need more info on\nthe error you're getting check that file.\n\nYou can acquire the data files along with original sources [here](http://liepaatnaujinimai.rastija.lt/sintezatorius/SintezesVariklis_LIEPAprojektas.zip)\n\nThe files that must be present in `data/` directory are:\n\n- `abb.txt`\n- `duom.txt`\n- `rules.txt`\n- `skaitm.txt`\n\nYou should extract voice directories unmodified.\n\nThe `.wav` produce by the synthesizer is completely unoptimized and contains\na lot of silence. Therefor you should further process it before usage.\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OzymandiasTheGreat/liepa-tts", "keywords": "tts,text2speech,lithuanian", "license": "MIT", "maintainer": "Ozymandias", "maintainer_email": "tomas.rav@gmail.com", "name": "liepa-tts", "package_url": "https://pypi.org/project/liepa-tts/", "platform": "", "project_url": "https://pypi.org/project/liepa-tts/", "project_urls": { "Homepage": "https://github.com/OzymandiasTheGreat/liepa-tts", "Repository": "https://github.com/OzymandiasTheGreat/liepa-tts" }, "release_url": "https://pypi.org/project/liepa-tts/0.1.0/", "requires_dist": [ "numpy (>=1.17,<2.0)" ], "requires_python": ">=3.6,<4.0", "summary": "Python bindings for Lithuanian language synthesizer from LIEPA project", "version": "0.1.0" }, "last_serial": 5677860, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9773dac70e8628d5d73d9896b6b304a8", "sha256": "2809e90b0048cb1510438076db5112ace88e31d20ad6a5cc760968b8ab568bce" }, "downloads": -1, "filename": "liepa-tts-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9773dac70e8628d5d73d9896b6b304a8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 50523, "upload_time": "2019-08-14T16:10:40", "url": "https://files.pythonhosted.org/packages/a2/1e/bc355d671c9c9125c61f49e18d1af0bb37f424f68ea56c5c935d27ba34d5/liepa-tts-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9773dac70e8628d5d73d9896b6b304a8", "sha256": "2809e90b0048cb1510438076db5112ace88e31d20ad6a5cc760968b8ab568bce" }, "downloads": -1, "filename": "liepa-tts-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9773dac70e8628d5d73d9896b6b304a8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 50523, "upload_time": "2019-08-14T16:10:40", "url": "https://files.pythonhosted.org/packages/a2/1e/bc355d671c9c9125c61f49e18d1af0bb37f424f68ea56c5c935d27ba34d5/liepa-tts-0.1.0.tar.gz" } ] }