OpenViSTAI · Agents · Blockchain · Crypto
Menu
Audio & Voice AI

Google Tts

Google Tts is a JavaScript library for Node.js applications that requests Google text-to-speech audio and provides it as URLs or Base64 data.

Independent OpenViST project profile, based on linked sources.

Google Tts — Server-side JavaScript speech-generation features
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a Node.js application needs to turn text into Google text-to-speech output and the application can work with audio URLs or Base64 data.

Who it is for

  • Node.js developers adding spoken output to an application.
  • JavaScript or TypeScript developers building utilities that convert supplied text into audio.

Documented uses

  • Generate an audio URL from a text input.
  • Retrieve audio data as Base64.
  • Process longer text through methods that return multiple text-and-audio results.
Before you choose

Requirements & limits

  • The package is installed with npm as google-tts-api.
  • Language, slower speech, and host can be configured; the README lists English and translate.google.com as defaults.
  • Base64 methods accept a timeout option, while the long-text methods accept a punctuation-splitting option.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Google Tts in a Node.js project

Add the package dependency before using its documented text-to-speech methods.

Before you start

  • A Node.js project using npm.
  • TypeScript projects can also install TypeScript and @types/node as development dependencies.

Steps

  1. Run the command below in the project.

    Documented command
    npm install --save google-tts-api
  2. For a TypeScript project, run the command below.

    Documented command
    npm install -D typescript @types/node

Expected outcome

The package is installed as a project dependency, ready for use through its documented JavaScript or TypeScript examples.

Guide limitations

  • These steps cover installation only; they do not verify audio generation or host availability.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
21 November 2026
Original website title
zlargon/google-tts · Official homepage title · retained in its source language