DocsHeadless

Text-to-Speech SDK

Convert text to WAV audio for Node.js and browser use. This guide takes you from install to your first working call.

Before you start

You need a Worktual account, a topped-up SDK balance (from $50) and your key. You can read these docs without an account.

1. Install

Install
npm install @worktual/text-to-speech

2. Add your key

Copy your key from the SDK setup page and pass it when you start the SDK.

3. Quick start

Quick start
import { TextToSpeech } from "@worktual/text-to-speech";

const tts = new TextToSpeech({ key: "YOUR_KEY" });
const wav = await tts.speak("Hello from Worktual");

Generate a test clip to check everything works.

Next in this guide