Skip to content

Instantly share code, notes, and snippets.

View nxnarbais's full-sized avatar

nxnarbais nxnarbais

View GitHub Profile
"""
Synthesia API client utilities.
This module provides a comprehensive interface for interacting with the Synthesia API,
including video creation, template management, webhook handling, and asset uploads.
"""
import os
import json
import logging
@nxnarbais
nxnarbais / synthesia_bulk_video_generation.gs
Last active July 7, 2025 12:34
Creat video at scale with Synthesia API
// Gist: https://gist.github.com/nxnarbais/3ad3ebc4ed67bb3f4b0e435b002ae9c4
/**
* Constants and Configuration
*/
const SYNTHESIA_API_KEY = "";
const SHEET_OUTPUT_VIDEO = 'output';
const SYNTHESIA_API_URL = 'https://api.synthesia.io/v2/videos/fromTemplate';
const COLUMNS_TO_EXCLUDE = ["_to_json", "template_id", "title", "description", "section", "lineIndex", "cta_label", "cta_url"];
const OUTPUT_COLUMNS_MANDATORY = ["template_id", "title", "lineIndex", "videoID", "publicVideoLink"];
<?xml version="1.0" encoding="UTF-8"?>
<job
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:proactive:jobdescriptor:3.3"
xsi:schemaLocation="urn:proactive:jobdescriptor:3.3 http://www.activeeon.com/public_content/schemas/proactive/jobdescriptor/3.3/schedulerjob.xsd"
name="FolderMonitoring"
priority="normal"
cancelJobOnError="false">
<taskFlow>
<task name="DirectoryMonitoring">