New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

elevenlabs-m2k

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elevenlabs-m2k

The Nodes KS API for ElevenLabs text-to-speech.

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-53.85%
Maintainers
1
Weekly downloads
 
Created
Source

Elevenlabs Nodejs

The Nodes JS API for ElevenLabs text-to-speech. Unleash the power of our cutting-edge technology to generate realistic, captivating speech in a wide range of languages.

Getting Started

Get your ElevenLabs API key from here.

const apiKey = process.env.API_KEY;
const { ElevenlabsAPI } = require('elevenlabs-m2k');
const elevenlabs = new ElevenlabsAPI(apiKey);

Get Voices

elevenlabs.getVoices().then(async (voices) => {
    const { voice_id, name } = voices[0];
    console.log(name, 'is speaking', `(${voice_id})`);
});

Get Sample Voice Audio URL

elevenlabs.getSample(voice_id).then(url => console.log(url));

Get Models

elevenlabs.getModels().then(async (data) => {
    const { model_id, name } = data.models[0];
    console.log(name, '=', `(${model_id})`);
});

Get Audio

const audio = await elevenlabs.getAudio("Hello World", voice_id); // Get array buffer

Keywords

FAQs

Package last updated on 13 Sep 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc