Tutorials

Generate subtitles with AssemblyAI and Zapier

Generate subtitles for your videos using the AssemblyAI app for Zapier.

Generate subtitles with AssemblyAI and Zapier

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:

Create your Zap

Log into your Zapier account and create a new Zap.

Zapier Create dropdown with "Zaps" as an option

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.

Searching for the Zapier Chrome extension trigger in Zapier

Select "New Push" as the Event, and click Continue.

Configure Event as "New Push" in Zapier Chrome extension trigger on Zapier.

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.

Zapier Chrome extension trigger with two additional input fields, video file and subtitles file name.

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.

Zapier Chrome extension trigger test records

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:

Click on Continue with selected record.

Transcribe audio

Click the empty action, search for AssemblyAI, and click on the AssemblyAI app.

Search for the AssemblyAI app for Zapier

Select the "Transcribe" Event.

Select the event for the AssemblyAI app for Zapier.

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.

Enter the AssemblyAI API key to create a Zapier connection

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.

Configure the fields of the AssemblyAI transcribe action in Zapier

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.

Select the Get Transcript Subtitles event for the AssemblyAI app for Zapier

Map the ID field from the transcribe step into the Transcript ID field. Click Continue.

Get Transcript Subtitles fields for the AssemblyAI app for Zapier.

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.

Google Drive app for Zapier with Create File From Text event selected.

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.

Configure fields for the Google Drive Create File From Text action.

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.

Zapier Chrome extension

Then, click on your Zap, fill out the fields with your video file URL and subtitles file name, or use these for testing:

Click Send.

Zapier Chrome extension fill out Zap fields

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.

Zap run showing successful run

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.