Vercel guide
Learn how to use LMNT in your Vercel apps.
Vercel is a cloud platform for static sites and serverless functions. It’s an easy way to host your LMNT speech-enabled apps.
The steps we’ll cover in this guide go from adding the integration to your Vercel account, retreiving your LMNT API key, and using LMNT Speech and Voice in your application development.
Adding the integration
- Sign into your Vercel account and navigate to the LMNT Vercel integration page.
- Click the
Add integration
button. - Select the Vercel project(s) you want to integrate with LMNT.
- Sign into your LMNT account in the popup to complete the integration.
You’re all set! You’ll now find a LMNT_API_KEY
environment variable in your Vercel project(s).
Accessing your LMNT API key
In requests to our servers, you’ll need to reference the LMNT API key that was added by the integration. Here are some examples of how to do so by runtime language:
Learn more about environment variables in Vercel here.
Using LMNT
With your key as enviroment variable, you can now either directly call the LMNT REST and WebSocket APIs or use our SDKs, referenced here:
Python SDK
NodeJS SDK
REST API
Explore our REST API reference.
Streaming Speech Reference
Try the WebSocket API to stream audio.
Adding the integration to additional Vercel projects
First, give the integration access permissions to your project(s)
- Sign into your Vercel account and navigate to the
Integrations
tab. - Select
Manage
on the LMNT integration. - In your LMNT integration page, select
Manage Access
on the right-hand side of the title row. - Select the projects that you would like to add the LMNT integration to (or select
All Projects
).
Second, configure the integration to add LMNT_API_KEY
environment variable to permissions projects.
- Back in the LMNT integration page, select
Configure
on the right-hand side of the title row. - Select the projects that you would like to set up with an LMNT API key environment variable.
LMNT_API_KEY
environment variable automatically. You will need to configure the integration to add the variable to new projects (steps 5 and 6 above).Was this page helpful?