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.
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
Project details
Release history Release notifications | RSS feed
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.1.0.tar.gz
(7.0 kB
view details)
Built Distribution
lmnt-0.1.0-py3-none-any.whl
(7.3 kB
view details)
File details
Details for the file lmnt-0.1.0.tar.gz
.
File metadata
- Download URL: lmnt-0.1.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c4c18727db17f2c1bb46db5f5c85852804693fe76ae248c036edb1bafe3fb75 |
|
MD5 | c5cecc8f583eb0bb540a632facddad68 |
|
BLAKE2b-256 | 51db9f1c2e5cd1b86c767f27b38947435995ff8fd5ef380d0c9d3b748db0e0fa |
File details
Details for the file lmnt-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lmnt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f1c7c7e3b8e8c7805831dc7e2467be34814ef5fa236d4bcb7aa84063c2ade0b |
|
MD5 | 953d7899a3f8a29f4385e43387cc83a4 |
|
BLAKE2b-256 | f1b494c21f6b409ce4cf8f0212cb1ad5d3ec3838943555db08755607fdaef6fa |