Socket
Book a DemoInstallSign in
Socket

@deepdub/node

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepdub/node

Deepdub API SDK

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

Deepdub SDK

This is the official SDK for the Deepdub API. It provides a simple way to interact with the API and generate dubbing scripts for your videos.

Install

npm install --save @deepdub/node

# or

yarn add @deepdub/node

Usage

const { DeepdubClient } = require('@deepdub/node');

require('dotenv').config();

async function main() {
  const deepdub = new DeepdubClient('YOUR_API_KEY');
  const promptId = 'YOUR_PROMPT_ID';
  await deepdub.connect();

  // You can generate into a buffer:
  //
  const buffer = await deepdub.generateToBuffer('Hello, this is a test.', 'en-US', promptId);

  // Or you can generate into a file:
  //
  await deepdub.generateToFile('./generated.wav', 'Hello, this is a test.', 'en-US', promptId);
}

main();

Keywords

deepdub

FAQs

Package last updated on 03 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts