Skip to content

Conversation

@jonathan343
Copy link
Contributor

@jonathan343 jonathan343 commented Nov 7, 2025

Summary

Note

These example scripts are heavily inspired by the ones here.

This PR adds an examples directory to aws-sdk-transcribe-streaming that contains the following scripts to help users get started.

  • simple_mic.py - Stream audio from your microphone in real-time and receive transcription results as you speak.
  • simple_file.py - Transcribe a pre-recorded audio file with simulated real-time streaming and rate limiting.
  • test.wav - A sample audio file generated using Amazon Polly

Testing

simple_file.py

(aws-sdk-transcribe-streaming) $ uv run examples/simple_file.py 
Transcribing audio from file...
===============================
Hello
Hello, this is an
Hello, this is an audio f
Hello, this is an audio file create
Hello, this is an audio file created using
Hello, this is an audio file created using Amazon
Hello, this is an audio file created using Amazon Poly.
Use me to
Use me to test the new
Use me to test the new Amazon
Use me to test the new Amazon Trans
Use me to test the new Amazon Transcribed stre
Use me to test the new Amazon Transcribed streaming SDK.

simple_mic.py

(aws-sdk-transcribe-streaming) $ uv run examples/simple_mic.py 
Start talking to see transcription!
(Press Ctrl+C to stop)
===================================
This
This is a test
This is a test.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jonathan343 jonathan343 requested a review from a team as a code owner November 7, 2025 18:26
@jonathan343 jonathan343 merged commit a87f861 into develop Nov 7, 2025
2 checks passed
@jonathan343 jonathan343 deleted the transcribe-streaming-examples branch November 7, 2025 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants