Documentation Index
Fetch the complete documentation index at: https://mintlify.com/konhi/elevenlabs-speech-to-text-api-ui/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The ElevenLabs Speech-to-Text API UI is designed to be deployed without requiring environment variables for the API key. Instead, users enter their API key directly in the browser UI for enhanced security and ease of deployment.No Environment Variables Required
Unlike traditional applications that require API keys to be configured on the server, this project:- Client-side API key management: Users enter their ElevenLabs API key in the UI
- No server-side secrets: No need to configure
.envfiles or environment variables - Easy deployment: Deploy anywhere without additional configuration
- Enhanced security: API keys never touch your server
Runtime Environment
The only environment consideration is theNODE_ENV variable, which is automatically set:
Development Mode
Production Mode
NODE_ENV=production setting:
- Optimizes React for production
- Disables development warnings
- Enables production performance optimizations
Build-time Environment
During the build process (build.ts:132-134), the following is automatically defined:
process.env.NODE_ENV references in your code with the string "production" at build time.
API Key Configuration
No server configuration needed
You don’t need to configure any API keys on your server or in environment files.
Users enter API key in UI
When users access your deployed application, they enter their own ElevenLabs API key in the settings or configuration panel.
Deployment Platforms
Since no environment variables are required, deployment is straightforward on all platforms:Optional: Custom Configuration
If you want to add custom environment variables for your own purposes, you can:Create a .env file
Access in Build Script
Modifybuild.ts to include custom environment variables:
Access in Code
Security Considerations
Why Client-side API Keys?
This architecture provides several benefits:- No server-side secrets: Your deployment has no sensitive data
- User responsibility: Each user manages their own API key
- Easy deployment: No secret management required
- Scalability: No server-side API rate limits to manage
Best Practices
The application runs entirely in the user’s browser. All API requests to ElevenLabs are made directly from the client, with the user’s API key included in the request headers.
Platform-Specific Notes
Vercel
No environment variables configuration needed invercel.json or the Vercel dashboard.
Netlify
No environment variables configuration needed innetlify.toml or the Netlify dashboard.
Docker
If deploying with Docker, no environment variables need to be passed:ENV or --env flags required.