
If you're interested in learning what's happening under the hood, read on to the next section to learn more. Once this is done, simply run transcribe_from_s3.py to see the transcription of the S3 audio file printed in the console! iam_secret_key - the secret key of the IAM user.iam_access_id - the access ID of the IAM user with programmtic access and S3 read permission.object_name - the name of the audio file in the S3 bucket that you want to transcribe.



bucket_name - the name of your AWS S3 bucket.To get the transcription of an S3 audio file, open transcribe_from_s3.py and edit the following variables to be equivalent to the relevant values for your application:
Transcribe an audio file install#
Once the repo has been cloned, create and activate a virtual environment and then install the necessary dependencies with: pip install -r requirements.txt Get the Transcription Now we can move on to actually generating and fetching the transcription of the S3 audio file! First, clone the associated repo from AssemblyAI's GitHub by entering the following in the terminal: git clone Once you close the final window of the Add user sequence, you will not be able to access this key again and will need to regenerate it if you forget/lose the original. Make sure to copy the IAM user's Secret access key and record it somewhere safe. Again, we will need these values later, so copy them into a text file before moving on. Then click Next and review the IAM user profile to ensure that everything looks copacetic before clicking Create user:įinally, take note of the IAM user's Access key ID and Secret access key. Copy and paste AmazonS3ReadOnlyAccess into the Filter policies search box, and then add this permission by clicking the checkbox next to it:Ĭlick Next and add tags if you wish. Set the user name you would like, and select Programmatic access under Select AWS access type:Ĭlick Next, and then Attach existing policies directly. Otherwise, create one now as follows:įirst, log into AWS as a root user or as another IAM user with the appropriate access, and then go to the IAM Management Console to add a new user. If you already have such an IAM user and you know its public and private keys, then you can move on to the next section. Second, you'll need an AWS IAM user with Programmatic access and the AmazonS3ReadOnlyAccess permission. You'll need the value of this key later, so leave the browser window open or copy the value into a text file. It will be on the right-hand side of the screen under Your API Key Next, you'll need to take note of your AssemblyAI API key, which you can find on your dashboard after signing in.

Transcribe an audio file free#
In order to transcribe an S3 audio file with AssemblyAI, you'll need to satisfy two prerequisites: AssemblyAI Accountįirst, you will obviously require an AssemblyAI account - you can sign up here for a free account if you don't already have one. POST a presigned S3 URL to AssemblyAI and then GET the transcript Prerequisites
