Transcribe an audio file with Deepgram & use Anthropic to prepare interview questions!
Make a copy of this notebook into your own drive, and follow the instructions below! 🥳🥳🥳
Get started:
Running the following three cells will allow you to transcribe any audio you wish. The comments below point out the variables you can manipulate to modify your output as you wish.
Before running this notebook, you'll need to have a couple audio URLs to transcribe. You can use any audio files you wish.
And by the way, if you haven't yet signed up for Deepgram, check out this link here: https://dpgr.am/prerecorded-notebook-signup(opens in new tab)
Step 1: Dependencies
Run this cell to download all necessary dependencies.
Note: You can run a cell by clicking the play button on the left or by clicking on the cell and pressing shift+ENTER at the same time. (Or shift + return on Mac).
Step 2: Audio URL files
Find some audio files hosted on a server so you can use this notebook. OR An example file is provided by Deepgram is code below.
Step 3: Transcription
Fill in the following variables:
DG_KEY= Your personal Deepgram API keyAUDIO_FILE_URL= a URL for an audio file you wish to transcribe.
Now run the cell! (Shift + Enter)
And by the way, if you're already a Deepgram user, and you're getting an error in this cell the most common fixes are:
- You may need to update your installation of the deepgram-sdk.
- You may need to check how many credits you have left in your Deepgram account.
If the cell above succeeds, you should see JSON output file(s) in the content directory. Note: There may be a small delay between when the cell finishes running and when the JSON file actually appears. This is normal. Just wait a few moments for the file(s) to appear.
Step 4: Check out your transcription
The function below parses the output JSON and prints out the transcription of one of the files you just transcribed! (Make sure the file you're trying to examine is indeed already loaded into the content directory.)
Set the OUTPUT variable to the name of the file you wish to see the transcription of.
Then run this cell (Shift+Enter) to see a sentence-by-sentence transcription of your audio!
If the cell above succeeds you should see a plain text version of your audio transcription.
Step 5: Prepare Interview Questions using Anthropic
Now we can send off our transcript to Anthropic for analysis to help us prepare some interview questions. Run the cell below (Shift+Enter) to get a suggested set of interview questions provided by Anthropic based on your audio transcript above.
If this cell succeeded you should see a list of interview questions based on your original audio file. Now you can transcribe audio with Deepgram and use Anthropic to get a set of interview questions.
