lmnt


Namelmnt JSON
Version 1.1.2 PyPI version JSON
download
home_pagehttps://github.com/lmnt-com/lmnt-python
SummaryPython client library for the LMNT API
upload_time2024-02-16 01:21:18
maintainer
docs_urlNone
authorLMNT, Inc.
requires_python
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": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "speech tts ai ml genai",
    "author": "LMNT, Inc.",
    "author_email": "feedback@lmnt.com",
    "download_url": "https://files.pythonhosted.org/packages/fb/d1/6cd5a088c9f738e8d6a2cad584c7118ed46fb156d38205131066157f19c8/lmnt-1.1.2.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.2",
    "project_urls": {
        "Homepage": "https://github.com/lmnt-com/lmnt-python"
    },
    "split_keywords": [
        "speech",
        "tts",
        "ai",
        "ml",
        "genai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "37c69b0fc869234a8825519168e164d77bb31c486917a1cd56ab4806ff4e96c5",
                "md5": "ad2e23018a3eee657c4b034e936e9020",
                "sha256": "3567dc551bce74c55a65b5b388b32596ee22a4e633841b6f9be3379e4c0c3a36"
            },
            "downloads": -1,
            "filename": "lmnt-1.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ad2e23018a3eee657c4b034e936e9020",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10895,
            "upload_time": "2024-02-16T01:21:15",
            "upload_time_iso_8601": "2024-02-16T01:21:15.752158Z",
            "url": "https://files.pythonhosted.org/packages/37/c6/9b0fc869234a8825519168e164d77bb31c486917a1cd56ab4806ff4e96c5/lmnt-1.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbd16cd5a088c9f738e8d6a2cad584c7118ed46fb156d38205131066157f19c8",
                "md5": "83176fa81939d9e48dee39635fab1f4b",
                "sha256": "1ef26185e6a11c1de0f93faa0832d647a1e90f3d074f128253248b7d1b40e17f"
            },
            "downloads": -1,
            "filename": "lmnt-1.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "83176fa81939d9e48dee39635fab1f4b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 175343,
            "upload_time": "2024-02-16T01:21:18",
            "upload_time_iso_8601": "2024-02-16T01:21:18.878379Z",
            "url": "https://files.pythonhosted.org/packages/fb/d1/6cd5a088c9f738e8d6a2cad584c7118ed46fb156d38205131066157f19c8/lmnt-1.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-16 01:21:18",
    "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: 0.25839s