LMNT
Orate supports LMNT's speech services.
LMNT is a platform that offers multimodal models that create natural speech in any language, voice, style, and emotion, enabling real-time interaction in any setting. Orate allows you to use LMNT's models to create text-to-speech and speech-to-speech synthesis.
Setup
The LMNT provider is available by default in Orate. To import it, you can use the following code:
Configuration
The LMNT provider looks for the LMNT_API_KEY
environment variable. This variable is required for the provider to work. Simply add the following to your .env
file:
Usage
The LMNT provider provides a single interface for all of LMNT's speech and transcription services.
Text to Speech
The LMNT provider provides a tts
function that allows you to create a text-to-speech synthesis function using LMNT. By default, the tts
function uses the aurora
model and the lily
voice.
You can specify the model and voice to use by passing them as arguments to the tts
function.
You can also specify specific LMNT properties by passing them as an argument to the tts
function.
Speech to Speech
The LMNT provider provides a sts
function that allows you to change the voice of the audio. By default, the sts
function uses the lily
voice.
You can specify the voice to use by passing it as an argument to the sts
function.
You can also specify specific LMNT properties by passing them as an argument to the sts
function.