npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@framers/agentos-ext-google-cloud-tts

v0.3.7

Published

Text-to-speech via Google Cloud Text-to-Speech API for AgentOS voice pipeline

Readme

Google Cloud text-to-speech

This pack registers a text-to-speech provider for the AgentOS voice pipeline. It uses Google Cloud Text-to-Speech through @google-cloud/text-to-speech.

Installation

npm install @framers/agentos-ext-google-cloud-tts

Peer dependencies: @framers/agentos (>=0.10.40) and @google-cloud/text-to-speech (^5.0.0).

Usage

import { AgentOS } from '@framers/agentos';

const agentos = await AgentOS.create({
  extensionManifest: {
    packs: [{ package: '@framers/agentos-ext-google-cloud-tts' }],
  },
  extensionSecrets: {
    GOOGLE_CLOUD_TTS_CREDENTIALS: process.env.GOOGLE_CLOUD_TTS_CREDENTIALS!,
  },
});

Configuration

createExtensionPack takes the first nonblank credential string from the secret GOOGLE_CLOUD_TTS_CREDENTIALS (read through getSecret, which AgentOS fills from extensionSecrets), then the environment variable of the same name. It ignores options. With neither set, the Google Cloud SDK uses Application Default Credentials. The standalone createGoogleCloudTTS(credentials) factory requires its argument: pass '' to use Application Default Credentials.

| Option | Secret id | Environment variable | Required | Default | | --- | --- | --- | --- | --- | | credentials | GOOGLE_CLOUD_TTS_CREDENTIALS | GOOGLE_CLOUD_TTS_CREDENTIALS | No | Empty: Application Default Credentials | | languageCode (per synthesis call) | None | None | No | en-US | | voice (per synthesis call) | None | None | No | Unset, Google Cloud selects the language's default voice |

Notes

Credentials accept an inline service-account JSON object or the path of an existing key file. Blank credentials leave authentication to the SDK's Application Default Credentials. The provider's source names GOOGLE_APPLICATION_CREDENTIALS, gcloud and the metadata server as SDK credential sources; the pack does not read that variable itself.

Malformed JSON, a nonblank value that names no file, and a path whose symbolic link followed by .. resolves to a different file for the client cause registration to throw. Credential errors do not quote the supplied value. File paths are made absolute with symbolic links preserved.

The SDK loads on the first API request. Synthesis sends plain text to Google Cloud and returns the whole MP3 clip as a buffer with MIME type audio/mpeg. The provider does not stream. The returned cost is a placeholder and does not report API charges.

listAvailableVoices returns API voice names as identifiers, the primary language under both lang and languageCode, the provider identifier, and recognized gender labels in lowercase. It preserves the API response order.

License

Apache-2.0