{"id":23310,"library":"aws-sdk-transcribe-streaming","title":"AWS SDK for Transcribe Streaming","description":"The aws-sdk-transcribe-streaming library (v0.5.0) is an unofficial, community-maintained Python SDK for Amazon Transcribe's streaming API. It provides a high-level interface to start real-time transcription using WebSocket connections. Requires Python 3.12+. Release cadence is irregular.","status":"active","version":"0.5.0","language":"python","source_language":"en","source_url":"https://github.com/awslabs/aws-sdk-transcribe-streaming","tags":["aws","transcribe","streaming","asyncio"],"install":[{"cmd":"pip install aws-sdk-transcribe-streaming","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Direct import from package root, not from submodule.","wrong":"from aws_sdk_transcribe_streaming.client import TranscribeStreamingClient","symbol":"TranscribeStreamingClient","correct":"from aws_sdk_transcribe_streaming import TranscribeStreamingClient"},{"note":"","wrong":"","symbol":"TranscribeStreaming","correct":"from aws_sdk_transcribe_streaming import TranscribeStreaming"}],"quickstart":{"code":"import os\nimport asyncio\nfrom aws_sdk_transcribe_streaming import TranscribeStreamingClient\n\nasync def transcribe():\n    client = TranscribeStreamingClient(\n        region=\"us-west-2\",\n        aws_access_key_id=os.environ.get(\"AWS_ACCESS_KEY_ID\", \"\"),\n        aws_secret_access_key=os.environ.get(\"AWS_SECRET_ACCESS_KEY\", \"\"),\n    )\n    result = await client.start_stream_transcription(\n        language_code=\"en-US\",\n        media_sample_rate_hz=16000,\n        media_encoding=\"pcm\",\n    )\n    print(result)\n\nasyncio.run(transcribe())","lang":"python","description":"Create a client and start a transcription stream."},"warnings":[{"fix":"Upgrade Python to 3.12+ or pin to aws-sdk-transcribe-streaming<0.5.0.","message":"Breaking: The library dropped support for Python <3.12 in v0.5.0. Using with older Python versions will fail with a syntax error.","severity":"breaking","affected_versions":">=0.5.0"},{"fix":"Ensure all calls to client methods are prefixed with 'await' inside an async function.","message":"The library uses asyncio under the hood. All client methods must be awaited; forgetting 'await' leads to coroutine objects instead of results.","severity":"gotcha","affected_versions":"all"},{"fix":"Pass 'region' explicitly when constructing the client.","message":"Use of 'TranscribeStreamingClient' without explicit region may fail silently. In earlier versions region defaulted to 'us-east-1' but new releases require explicit parameter.","severity":"deprecated","affected_versions":">=0.4.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use a supported language code such as 'en-US', 'es-US', 'ja-JP', etc. See AWS docs for full list.","cause":"Only specific language codes are supported; 'en-GB' is not listed in AWS Transcribe streaming documentation.","error":"ValueError: The language code 'en-GB' is not supported"},{"fix":"Install the library: pip install aws-sdk-transcribe-streaming and use 'from aws_sdk_transcribe_streaming import TranscribeStreamingClient'.","cause":"Importing from the wrong path or the library is not installed.","error":"AttributeError: module 'aws_sdk_transcribe_streaming' has no attribute 'TranscribeStreamingClient'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}