Minimal setup to test audio transcription using livekit-agents STT node (with Amazon Transcribe)
-
Build the agent container
docker build -t livekit/transcription-agent-test:latest agent/.
-
Export requried env vars and start the agent
# Export your LiveKit Cloud credentials export LIVEKIT_URL=wss://xxxxxxxx.livekit.cloud export LIVEKIT_API_KEY=your_livekit_cloud_api_key export LIVEKIT_API_SECRET=your_livekit_cloud_api_secret # Export your AWS credentials export AWS_ACCESS_KEY_ID=your_access_key_id export AWS_SECRET_ACCESS_KEY=your_secret_access_key export AWS_DEFAULT_REGION=your_aws_region # Start the agent docker compose up -d
-
Set up your LiveKit Cloud credentials in the webapp HTML right here:
const LIVEKIT_URL = "wss://xxxxxxxx.livekit.cloud"; const LIVEKIT_API_KEY = "your_livekit_cloud_api_key"; const LIVEKIT_API_SECRET = "your_livekit_cloud_api_secret";
-
Run the webapp
cd webapp npm install npm start -
Open http://localhost:3000 in your browser and test.