LMNT AI TTS
The LMNT AI TTS provider enables your agent to use LMNT AI's high-quality text-to-speech models for generating natural-sounding voice output.
Installation​
Install the LMNT AI-enabled VideoSDK Agents package:
pip install "videosdk-plugins-lmnt"
Importing​
from videosdk.plugins.lmnt import LMNTTTS
Authentication​
The LMNT plugin requires an LMNT API key.
Set LMNT_API_KEY
in your .env
file.
Example Usage​
from videosdk.plugins.lmnt import LMNTTTS
from videosdk.agents import CascadingPipeline
# Initialize the LMNT TTS model
tts = LMNTTTS(
voice="ava",
model="blizzard",
language="auto",
)
# Add tts to cascading pipeline
pipeline = CascadingPipeline(tts=tts)
When using .env file for credentials, don't pass them as arguments to model instances or context objects. The SDK automatically reads environment variables, so omit api_key
and other credential parameters from your code.
Configuration Options​
api_key
: Your LMNT API key (can also be set viaLMNT_API_KEY
environment variable)voice
: Voice ID to use for synthesis (required)model
: Model to use for synthesis (default: "blizzard")language
: Language code for synthesis (default: "auto")
Additional Resources​
The following resources provide more information about using LMNT with VideoSDK Agents SDK.
-
Python package: The
videosdk-plugins-lmnt
package on PyPI. -
GitHub repo: View the source or contribute to the VideoSDK LMNT TTS plugin.
-
LMNT docs: LMNT API docs.
Got a Question? Ask us on discord