SDK DocumentationWorktual Voice TTS SDK

Worktual Voice TTS SDK

Send text and receive WAV audio. Node returns a Buffer. The browser build returns a Blob.

@worktual_limited/tts

Contact Us

Install

npm i @worktual_limited/tts

Synthesize

import { SpeechClient } from "@worktual_limited/tts";

const client = new SpeechClient({
  accessToken: "identity-jwt",
  superDomainId: "YOUR_SUPER_DOMAIN",
  subDomainId: "1000",
  baseUrl: "https://unified-api.worktual.com",
});

const audio = await client.synthesize("Hello");

Test

npm test
In this document
Worktual Voice TTS SDK
Install
Synthesize
Test
↑ Back to top