Async Python SDK for Amazon Transcribe Streaming
Low maintenance activity. Last release 19 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
Consider insteadaws_sdk_transcribe_streamingPythie’s Index: 84343.1K downloads/moCompare →
pip install amazon-transcribeAmazon Transcribe Streaming SDK
The Amazon Transcribe Streaming SDK allows users to directly interface with the Amazon Transcribe Streaming service and their Python programs. The goal of the project is to enable users to integrate directly with Amazon Transcribe without needing anything more than a stream of audio bytes and a basic handler.
It's highly advised to pin to strict dependencies if using this outside of local testing. Please note awscrt is a dependency shared with botocore (the core module of AWS CLI and boto3). You may need to keep amazon-transcribe at the latest version when installed in the same environment.
[!NOTE] This project was launched as a proof of concept and is no longer actively developed. It is not an official AWS product and is provided as-is, without a support commitment. This package can, in rare cases, suffer from high CPU issues (#109, #84).
Installation
To install from pip:
python -m pip install amazon-transcribe
To install from Github:
git clone https://github.com/awslabs/amazon-transcribe-streaming-sdk.git
cd amazon-transcribe-streaming-sdk
python -m pip install .
To use from your Python application, add amazon-transcribe as a dependency in your requirements.txt file.
NOTE: This SDK is built on top of the AWS Common Runtime (CRT), a collection of C libraries we interact with through bindings. The CRT is available on PyPI (awscrt) as precompiled wheels for common platforms (Linux, macOS, Windows). Non-standard operating systems may need to compile these libraries themselves.
Usage
Prerequisites
If you don't already have local credentials setup for your AWS account, you can follow this guide for configuring them using the AWS CLI.
In essence you'll need one of these authentication configurations setup in order for the SDK to successfully resolve your API keys:
- Set the
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYand optionally theAWS_SESSION_TOKENenvironment variables - Set the
AWS_PROFILEpointing to your AWS profile directory - Configure the
[default]profile in~/.aws/credentials
For more details on the AWS shared configuration file and credential provider usage, check the following developer guides: