
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
The Text-to-Speech Library provides a simple unified interface for generating high-quality speech audio using top text-to-speech providers like OpenAI, Google Cloud, and ElevenLabs.
With just a few lines of code, you can produce natural human-like voice audio for your applications and products.
speak()
methodpnpm add tts-ai
import { TtsOpenAI } from 'tts-ai';
const uploadToS3 = (audio: ArrayBuffer) => {
// upload
};
const tts = new TtsOpenAI({
apiKey: 'YOUR_API_KEY',
uploadHandler: uploadToS3,
});
await tts.speak('Hello world');
await tts.upload();
OpenAi_TTS_API_KEY = YOUR_API_KEY
import { TtsOpenAI } from 'tts-ai';
const tts = new TtsOpenAI();
await tts.speak('Hello world');
await tts.save();
See documentation for full usage details.
The library supports the following text-to-speech providers:
Contributions are welcome!
This project is licensed under the MIT license.
FAQs
A project template to bootstrap NPM package with Typescript
The npm package tts-ai receives a total of 1 weekly downloads. As such, tts-ai popularity was classified as not popular.
We found that tts-ai demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.