Skip to main content

Python client library for the LMNT API

Project description

LMNT Python Library

The LMNT Python library provides convenient access to the LMNT API from applications written in the Python language.

[Documentation]

Installation

Installing from PyPI is the quickest way to get started:

pip install --upgrade lmnt

Install from source with:

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 for a deeper dive into the SDK.

from lmnt.api import Speech

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

async with Speech(LMNT_API_KEY) as speech:
  wav_file = await speech.synthesize('Hello, world.', voice='4e95c4a7-95aa-4b1d-bc23-00f7d1d484ea')
  with open('output.wav', 'wb') as f:
    f.write(wav_file)

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lmnt-0.2.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

lmnt-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file lmnt-0.2.0.tar.gz.

File metadata

  • Download URL: lmnt-0.2.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for lmnt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0ce9448bec5e412fd1d01d11ecae09e65266662cc45589c93b23104ba2c27b32
MD5 4344a5870e5f89f6e0e323296a337f5e
BLAKE2b-256 a2168d2c46d99212adad21af4b8ef3d208f0c2097f7da149cef14483dbc08916

See more details on using hashes here.

File details

Details for the file lmnt-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: lmnt-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for lmnt-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d473b08f16398b8247ab6718e039774ca0c40e685b59d2e4b4f8ee6a04c9e19c
MD5 d35d04b866aa4d60c64c373abad3343b
BLAKE2b-256 a735302ba5ec795101d3e72dba942209d5f2294d095c9d91a9503d137050bf38

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page