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

text-to-audio-converter

v1.1.1

Published

This Node.js package is open source and uses ElevenLabs' Text to Speech API.

Readme

Logo

How to Use

1. Login to Eleven Labs

  • Go to the Eleven Labs website: Eleven Labs
  • If you already have an account, log in with your credentials.
  • If you don't have an account, you’ll need to sign up by creating a new account.

2. Get Your API Key

After logging in:

  • Navigate to the Dashboard or API section (you may find it under your profile or in a developer section).
  • You should find an option to generate an API key.
  • Copy the generated API key (this key will be used in your code).

Dashboard Login Screenshot

App Screenshot

Demo

https://elevenlabs.io/app/speech-synthesis/text-to-speech

Eleven Labs Text-to-Speech API Node.js Package

This open-source Node.js package provides a simple and efficient way to interact with the Eleven Labs Text-to-Speech API. It enables seamless integration of advanced text-to-speech functionality into your applications, making it easier to generate high-quality audio from text.

Installation

Install text-to-speech with npm

  npm install text-to-audio-converter

Usage/Examples

import { setApiKey } from 'text-to-audio-converter';

// Set your API key for Eleven Labs Text-to-Speech
setApiKey('your_api_key_here');
import { textToSpeech } from 'text-to-audio-converter';

// Generate speech from text
textToSpeech("Voice_id", "Hello, world!", "eleven_multilingual_v2", "customPath")
  .then(async (res) => {
    console.log("Audio file saved at:", res); // Path to the generated audio file
  })
  .catch((err) => {
    console.error("Error:", err);
  });
import { VoiceListing } from 'text-to-audio-converter';

// Retrieve available voice listings
VoiceListing()
  .then((voices) => {
    console.log("Available Voices:", voices);
  })
  .catch((err) => {
    console.error("Error fetching voice listings:", err);
  });

Features

  • Text-to-Speech Conversion: Easily generate high-quality audio from text using the Eleven Labs API.
  • Voice Listing: Retrieve and explore all available voices for text-to-speech generation, enabling customizable experiences.

Hi, I'm Vipin Singh! 👋

🔗 Links

portfoliolinkedintwitter

🚀 About Me

I'm a passionate Full Stack Developer with 3 years of experience specializing in building high-performance web applications. I focus on both frontend and backend development, using modern technologies and best practices to deliver seamless, user-friendly experiences.

I’ve created this package to help developers like you integrate text-to-speech functionality with ease, utilizing the Eleven Labs API.

Skills & Expertise:

  • Frontend Development: JavaScript, React.js, Next.js, TypeScript, HTML, CSS, Redux
  • Backend Development: Node.js, NestJS, MySQL, MongoDB, Redis, Microservices
  • DevOps & Tools: Docker, System Design, Debugging
  • Specializations: Web Application Development, API Design, Performance Optimization

I'm dedicated to crafting scalable, maintainable, and innovative solutions that enhance user experience and improve application performance.

Authors