The LMNT Python SDK provides convenient access to the LMNT API from Python applications.
Full documentation is available at docs.lmnt.com/api/sdks/python.
pip install lmntimport os
from lmnt import Lmnt
client = Lmnt(
api_key=os.environ.get("LMNT_API_KEY"), # This is the default and can be omitted
)
response = client.speech.generate(
text="hello world.",
voice="leah",
)Python 3.10 or higher.