Skip to main content
Google Sheets combined with Apps Script lets you automate text-to-speech generation right from your spreadsheet. Perfect for batch processing, content automation, and team workflows!

What You Can Do

With Typecast and Google Sheets, you can:
  • Batch generate TTS - Convert multiple texts to speech with one click
  • Automate workflows - Process data and generate audio automatically
  • No coding required - Use the simple custom menu interface
  • Team collaboration - Share sheets with team members for collaborative audio production
  • Auto-save to Drive - Generated audio files are automatically stored in Google Drive

Prerequisites

Before you start, make sure you have:
  1. Google Account - Access to Google Sheets
  2. Typecast API Key - Get yours here

Setup Guide

Step 1: Create Your Spreadsheet

  1. Open Google Sheets
  2. Create a new blank spreadsheet
  3. Set up your columns with headers in the first row:
    • Column A: Text - The text you want to convert to speech
    • Column B: Voice - Voice ID (e.g., tc_66aca22c7d31e45ff05ff418) or Voice Name from the Voice Library
    • Column C: Language - Language code (eng, kor, jpn, cmn, etc.)
    • Column D: Audio URL - Leave empty (will be auto-filled)
  4. Add your data starting from the second row (row 1 is reserved for headers)
Google Sheet with Text, Voice, Language, and Audio URL columns

Spreadsheet with sample data ready for TTS generation

You can use voice names (like Arin) or voice IDs (like tc_66aca22c7d31e45ff05ff418)! The script automatically looks up voice IDs from names. Find available voices and their names at Voice Library or using the Voices API. The script uses Smart Emotion and ssfm-v30 model by default for natural-sounding speech!

Step 2: Open Apps Script Editor

  1. Click Extensions in the menu bar
  2. Select Apps Script
Extensions menu showing Apps Script option

Opening Apps Script from Extensions menu

  1. A new tab will open with the Apps Script editor
Apps Script code editor interface

Apps Script editor with default code

Step 3: Add the Typecast Integration Code

IMPORTANT: API Key Required! Before using the script, you MUST replace YOUR_API_KEY_HERE on line 2 with your actual Typecast API key. Get your API key from the Typecast API console.
  1. Delete the default myFunction() code
  2. Copy and paste the following code:
Complete Apps Script code in the editor

Apps Script code added to the editor

🔑 Don’t Forget Your API Key! Before running the script, you MUST update line 2: Replace this: javascript const TYPECAST_API_KEY = 'YOUR_API_KEY_HERE'; With your actual API key: javascript const TYPECAST_API_KEY = 'your_actual_api_key_from_typecast'; Get your API key from the Typecast API console.
  1. Click the Save icon (💾) or press ⌘+S (Mac) / Ctrl+S (Windows)
  2. Give your project a name (e.g., “Typecast TTS Integration”)

Step 4: Authorize the Script

The first time you run the script, Google will ask for permissions:
  1. Close the Apps Script tab and return to your spreadsheet
  2. Refresh the page (F5 or ⌘+R)
  3. You should see a new menu: 🎙️ Typecast TTS appear in the menu bar
Custom menu showing Generate All Audio, Generate Selected Rows, and Clear Audio URLs options

Custom Typecast TTS menu in Google Sheets

  1. Click 🎙️ Typecast TTSGenerate All Audio
Typecast TTS menu opened showing all available options

Opening the custom menu to generate audio

  1. Google will prompt you to authorize the script:
    • Click Continue
    • Select your Google account
    • Click AdvancedGo to [Project Name] (unsafe)
    • Click Allow
The “unsafe” warning appears because this is a custom script. It’s safe to proceed if you trust the code you copied.

Usage

Generate Audio for All Rows

  1. Click 🎙️ Typecast TTSGenerate All Audio
  2. The script will process all rows with text and voice ID
Running script notification showing the generation in progress

Script running - processing your text

  1. When complete, you’ll see a success message
Success dialog showing 3 audio files generated with 0 errors

Generation completed successfully

  1. Audio URLs will appear in Column D
  2. Generated audio files are saved to your Google Drive
Smart Emotion is enabled by default! The script uses emotion_type: 'smart' with the ssfm-v30 model for natural-sounding, emotionally appropriate speech.
Spreadsheet showing generated Google Drive URLs in Column D with Smart Emotion enabled

Final result with Google Drive URLs

Generate Audio for Selected Rows

  1. Select the rows you want to process (click and drag on row numbers)
  2. Click 🎙️ Typecast TTSGenerate Selected Rows
  3. Only the selected rows will be processed
Use “Generate Selected Rows” when you want to regenerate specific audio files or add new rows incrementally.

Clear Audio URLs

To remove all generated URLs (doesn’t delete audio files from Drive):
  1. Click 🎙️ Typecast TTSClear Audio URLs
  2. Confirm the action
  3. All URLs in Column D will be cleared

Advanced Configuration

Smart Emotion (Default)

The script uses Smart Emotion by default, which automatically analyzes your text and applies appropriate emotions:

Use Preset Emotions Instead

If you want to manually control emotions, change emotion_type to preset:

Supported Languages

The script supports 37 languages with the ssfm-v30 model (used by default): Simply change the value in Column C to use different languages! Language codes are case-insensitive (ENG and eng both work).

Save to Specific Drive Folder

To save audio files to a specific folder instead of root:

Add More Columns

You can extend the spreadsheet with additional columns for even more control:
  • Column E: Emotion Preset (happy, sad, angry, normal)
  • Column F: Audio Tempo (0.5 to 2.0)
  • Column G: Audio Pitch (-12 to +12)
  • Column H: Status (Processing, Done, Error)
Then modify the script to read these values from the sheet.

Why Use Google Sheets with Typecast?

No Coding Required

Simple copy-paste setup. Non-developers can easily generate professional voiceovers in just 5 minutes.

Perfect for Automation

Set it up once and use forever. Ideal for repetitive TTS tasks and macro-style workflows.

Batch Processing

Generate hundreds of audio files with a single click. Process entire content calendars at once.

Team Collaboration

Share spreadsheets with your team. Everyone can contribute text and generate audio together.
This is how simple the Typecast API is! With just a few lines of code and Google Sheets, you can automate your entire TTS workflow. Perfect for content creators, marketers, and educators who need to generate audio at scale without technical expertise.

Use Cases

Create course narrations from lesson scripts. Add text in Column A, generate audio, and download for your videos.
Generate intro/outro segments, ad reads, and announcements from a shared Google Sheet.
Convert e-commerce product descriptions into audio for accessibility or marketing videos.
Batch-generate voiceovers for Instagram Reels, TikTok, or YouTube Shorts from your content calendar.
Translate text in your sheet and generate audio in multiple languages for global audiences.

Troubleshooting

  • Make sure you clicked Allow when prompted - Try clearing authorization and re-authorizing: 1. Apps Script editor → Run → Clear authorization 2. Save and close 3. Refresh your spreadsheet 4. Try the menu again
  • Check that you replaced YOUR_API_KEY_HERE with your actual API key - Verify your API key at Typecast API console - Make sure there are no extra spaces around the key
  • Check your credit balance in the Typecast API console - Each character costs credits - make sure you have enough
  • Process in smaller batches using “Generate Selected Rows” - Apps Script has a 6-minute execution limit - For very large datasets (500+ rows), split into multiple sheets
  • Check your Google Drive root folder - Audio files are named typecast_[timestamp].mp3 - Make sure the script has Drive permissions (authorized correctly)

Resources

Voice Library

Browse 500+ available voices

API Reference

Explore the Typecast API

Apps Script Docs

Learn more about Google Apps Script

Get API Key

Get your Typecast API key