With the AssemblyAI app for Zapier you can apply speech AI to your audio and video files. In this tutorial, you'll learn how to transcribe a video, then generate SRT subtitles for it, and finally, upload the subtitles to Google Drive.
Prerequisites
You'll need these to follow along:
- Basic experience with creating Zaps on Zapier
- A Zapier account with an upgraded Zapier plan to create multi-step Zaps
- A Chromium-based browser (Google Chrome/Microsoft Edge/etc.)
- The Zapier Chrome extension
Create your Zap
Log into your Zapier account and create a new Zap.
Configure trigger
Click on the empty trigger and search for the "Zapier Chrome extension".
This trigger lets you trigger your Zap at will using the Chrome extension, and provide additional fields that your Zap needs.
Select "New Push" as the Event, and click Continue.
On the Trigger tab, add two new Input Fields:
- Video File: You will use this field to pass the URL to the video file you want to transcribe
- Subtitles File Name: You will use this field to configure the name of the subtitles file in Google Drive.
Click Continue.
Click Find new records, and select the most recent record in the list.
This record should include your two new fields. If it doesn't, click on Find new records again.
Click on the pencil icon at the bottom right to create a duplicate record that you can edit.
Update your custom fields with values of your choice, or use our sample video:
- Fields Video File: https://storage.googleapis.com/aai-web-samples/hanniballecter.mp4
- Fields Subtitles File Name: hanniballecter.srt
Click on Continue with selected record.
Transcribe audio
Click the empty action, search for AssemblyAI, and click on the AssemblyAI app.
Select the "Transcribe" Event.
If this is your first time using AssemblyAI with Zapier, you'll need to create a new connection.
Create a new connection and enter your AssemblyAI API key. If you don't have an AssemblyAI account, first sign up for free, then copy and paste your API key from the account settings. Finally, click Yes, Continue to AssemblyAI.
Now that your connection is configured, click Continue.
Next, map the Fields Video File
from the Chrome extension trigger into the Audio File field, then select the Language Code of your video or set Language Detection to True
. You can find the list of supported languages and features in the docs.
Click Continue.
Test the action. Remember that we're always returning sample data during testing due to Zapier limitations.
During a real Zap run, the action will be executed, and real data will be returned.
Generate subtitles
Add another action, select the AssemblyAI app, but select the "Get Transcript Subtitles" Event, and click Continue. The previously created AssemblyAI connection should already be selected. Click Continue again.
Map the ID
field from the transcribe step into the Transcript ID field. Click Continue.
Test the action. This action also returns sample data during testing.
Upload subtitles to Google Drive
Add one last action. Search for the Google Drive app and select it. Select the "Create File From Text" Event. Click Continue.
If you haven't already, create a connection to your Google Drive, and click Continue.
Configure the action as you wish. Then map the Fields Subtitles File Name
into the File Name field, and map the Subtitles
into the File Content field. Click Continue.
Feel free to test the action. Finally, publish the Zap.
Run your Zap
To run your Zap, click on the Zapier Chrome extension in your browser. Log in if you haven't already.
Then, click on your Zap, fill out the fields with your video file URL and subtitles file name, or use these for testing:
- Video File: https://storage.googleapis.com/aai-web-samples/hanniballecter.mp4
- Subtitles File Name: hanniballecter.srt
Click Send.
Shortly, your Zap will run, and you will see the subtitles file appear in your Google Drive. You can see the result of your Zap run under "Zap runs" of your Zap.
Next steps
You successfully put together a Zap that generates subtitles for your videos, using the Chrome extension trigger, the AssemblyAI transcribe & get transcript subtitles action, and the Google Drive Create File From Text action.
You can integrate AssemblyAI's speech AI with many other services in Zapier. The Transcribe action that you used has a lot more parameters that you can configure to enable AI models and change the output of the transcript. You can learn more about the AssemblyAI app for Zapier in our documentation.