lmnt


Namelmnt JSON
Version 1.1.4 PyPI version JSON
download
home_pagehttps://github.com/lmnt-com/lmnt-python
SummaryPython client library for the LMNT API
upload_time2024-08-01 23:24:32
maintainerNone
docs_urlNone
authorLMNT, Inc.
requires_pythonNone
licenseApache 2.0
keywords speech tts ai ml genai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LMNT Python Library
The LMNT Python library provides convenient access to the LMNT API from applications written in the Python language.

[[Documentation]](https://docs.lmnt.com/sdk/python/introduction)

## Installation
Installing from PyPI is the quickest way to get started:

```sh
pip install --upgrade lmnt
```

Install from source with:

```sh
python setup.py install
```

## Getting started

The most common operation you'll perform is a `synthesize` request. Given some text and a voice, it will return an audio
file that you can play back. Take a look at our [documentation](https://docs.lmnt.com/sdk/python/introduction) for a deeper dive into the SDK.

```python
import asyncio

from lmnt.api import Speech


LMNT_API_KEY = ...  # fill in your API key here


async def main():
  async with Speech(LMNT_API_KEY) as speech:
    synthesis = await speech.synthesize('Hello, world.', voice='lily', format='wav')
    with open('output.wav', 'wb') as f:
      f.write(synthesis['audio'])


asyncio.run(main())
```

While you can provide an `api_key` argument, we recommend using `python-dotenv` to add `LMNT_API_KEY="My API Key"` to your `.env` file so that your API key is not stored in source control.

## More examples

You can find more examples in the [demo](demo) directory.

## License
[Apache 2.0](LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lmnt-com/lmnt-python",
    "name": "lmnt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "speech tts ai ml genai",
    "author": "LMNT, Inc.",
    "author_email": "feedback@lmnt.com",
    "download_url": "https://files.pythonhosted.org/packages/07/d9/85c9e83682392488f793c3e51fe6cc60c9aa023b4e6148a9045e29461622/lmnt-1.1.4.tar.gz",
    "platform": null,
    "description": "# LMNT Python Library\nThe LMNT Python library provides convenient access to the LMNT API from applications written in the Python language.\n\n[[Documentation]](https://docs.lmnt.com/sdk/python/introduction)\n\n## Installation\nInstalling from PyPI is the quickest way to get started:\n\n```sh\npip install --upgrade lmnt\n```\n\nInstall from source with:\n\n```sh\npython setup.py install\n```\n\n## Getting started\n\nThe most common operation you'll perform is a `synthesize` request. Given some text and a voice, it will return an audio\nfile that you can play back. Take a look at our [documentation](https://docs.lmnt.com/sdk/python/introduction) for a deeper dive into the SDK.\n\n```python\nimport asyncio\n\nfrom lmnt.api import Speech\n\n\nLMNT_API_KEY = ...  # fill in your API key here\n\n\nasync def main():\n  async with Speech(LMNT_API_KEY) as speech:\n    synthesis = await speech.synthesize('Hello, world.', voice='lily', format='wav')\n    with open('output.wav', 'wb') as f:\n      f.write(synthesis['audio'])\n\n\nasyncio.run(main())\n```\n\nWhile you can provide an `api_key` argument, we recommend using `python-dotenv` to add `LMNT_API_KEY=\"My API Key\"` to your `.env` file so that your API key is not stored in source control.\n\n## More examples\n\nYou can find more examples in the [demo](demo) directory.\n\n## License\n[Apache 2.0](LICENSE)\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "Python client library for the LMNT API",
    "version": "1.1.4",
    "project_urls": {
        "Homepage": "https://github.com/lmnt-com/lmnt-python"
    },
    "split_keywords": [
        "speech",
        "tts",
        "ai",
        "ml",
        "genai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a5884680f91c6bff8c086adb35ab956387e58f14bad6d82af268808ad552d121",
                "md5": "d229f5d79a7502eaac00931be926377a",
                "sha256": "78616495d67ca7b736d303daa41182507f6b9256bf724c292f9c0c331da7da66"
            },
            "downloads": -1,
            "filename": "lmnt-1.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d229f5d79a7502eaac00931be926377a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11066,
            "upload_time": "2024-08-01T23:24:30",
            "upload_time_iso_8601": "2024-08-01T23:24:30.328218Z",
            "url": "https://files.pythonhosted.org/packages/a5/88/4680f91c6bff8c086adb35ab956387e58f14bad6d82af268808ad552d121/lmnt-1.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "07d985c9e83682392488f793c3e51fe6cc60c9aa023b4e6148a9045e29461622",
                "md5": "9b4614be923d4d1123883b96bbbccf62",
                "sha256": "fcb43a618a4df53e95a3b5a301b74ef623d7ff33cade965958c5143ced3a6488"
            },
            "downloads": -1,
            "filename": "lmnt-1.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "9b4614be923d4d1123883b96bbbccf62",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 175550,
            "upload_time": "2024-08-01T23:24:32",
            "upload_time_iso_8601": "2024-08-01T23:24:32.561104Z",
            "url": "https://files.pythonhosted.org/packages/07/d9/85c9e83682392488f793c3e51fe6cc60c9aa023b4e6148a9045e29461622/lmnt-1.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-01 23:24:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lmnt-com",
    "github_project": "lmnt-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lmnt"
}
        
Elapsed time: 4.10437s