Skip to content

Amazon Transcribe Streaming SDK example Web Application in reactjs using AudioWorklet APIs to ingest streaming audio

License

Notifications You must be signed in to change notification settings

aws-samples/amazon-transcribe-streaming-example-webapp-audiostream

Amazon Transcribe Streaming SDK example Web Application

To get started,

  1. Clone this repo to a local dev environment

  2. Setup Cognito (User pool, identity pool, client id) (and setup a login user).
    Update env.local file with cognito configuration

VITE_REACT_APP_USER_POOL_ID=xxxxxx
VITE_REACT_APP_USER_POOL_CLIENT_ID=xxxxxx
VITE_REACT_APP_IDENTITY_POOL_ID=xxxxxxx
VITE_REACT_APP_AWS_REGION=us-east-1
  1. Additional parameters - update as needed
VITE_TRANSCRIBE_LANGUAGE_CODE=en-US
VITE_TRANSCRIBE_SAMPLING_RATE=48000
VITE_TRANSCRIBE_AUDIO_SOURCE=Microphone 

Set VITE_TRANSCRIBE_AUDIO_SOURCE=ScreenCapture if you want to capture audio from a browser tab. Default = audio will be captured from Microphone

  1. Run the Web application locally

yarn

yarn dev

  1. From the browser, go to the web application localhost url (eg. http://localhost:5173) and login using the Cognito user id setup in Step 2

  2. Click on "Start Transcription" button to start transcribing audio

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

Amazon Transcribe Streaming SDK example Web Application in reactjs using AudioWorklet APIs to ingest streaming audio

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks