Overview
This plugin allows you to use Amazon Transcribe as an STT provider for your voice agents.
Quick reference
This section provides a brief overview of the Amazon Transcribe STT plugin. For more information, see Additional resources.
Installation
Install the plugin from PyPI:
uv add "livekit-agents[aws]~=1.3"
Authentication
The Amazon Transcribe plugin requires an AWS API key.
Set the following environment variables in your .env file:
AWS_ACCESS_KEY_ID=<aws-access-key-id>AWS_SECRET_ACCESS_KEY=<aws-secret-access-key>AWS_DEFAULT_REGION=<aws-deployment-region>
Usage
Use Amazon Transcribe STT in an AgentSession or as a standalone transcription service. For example, you can use this STT in the Voice AI quickstart.
from livekit.plugins import awssession = AgentSession(stt = aws.STT(session_id="my-session-id",language="en-US",vocabulary_name="my-vocabulary",vocab_filter_name="my-vocab-filter",vocab_filter_method="mask",),# ... llm, tts, etc.)
Parameters
This section describes some of the available parameters. See the plugin reference for a complete list of all available parameters.
stringOptionalDefault: us-east-1Env: AWS_DEFAULT_REGIONThe region of the AWS deployment. Required if the environment variable isn't set.
stringOptionalDefault: en-USThe language of the audio. For a full list of supported languages, see the Supported languages page.
stringOptionalDefault: NoneName of the custom vocabulary you want to use when processing your transcription. To learn more, see Custom vocabularies.
stringOptionalName for your transcription session. If left empty, Amazon Transcribe generates an ID and returns it in the response.
stringOptionalDefault: NoneName of the custom vocabulary filter that you want to use when processing your transcription. To learn more, see Using custom vocabulary filters to delete, mask, or flag words.
stringOptionalDefault: NoneDisplay method for the vocabulary filter. To learn more, see Using custom vocabulary filters to delete, mask, or flag words.
Additional resources
The following resources provide more information about using Amazon Transcribe with LiveKit Agents.
Python package
The livekit-plugins-aws package on PyPI.
Plugin reference
Reference for the Amazon Transcribe STT plugin.
GitHub repo
View the source or contribute to the LiveKit Amazon Transcribe STT plugin.
AWS docs
Amazon Transcribe's full docs site.
Voice AI quickstart
Get started with LiveKit Agents and Amazon Transcribe.