Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-tts-mp3

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-tts-mp3

Converts text to mp3 audio using google-tts-api, it hasn't a limit

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
49
decreased by-37.97%
Maintainers
1
Weekly downloads
 
Created
Source

simple-tts-mp3 package

This package provides two methods to create MP3 audio files from text using the google-tts-api module, find it on npm!

MethodOptions [optional]Description
createAudioFiletext, fileName, [language = 'en']Creates an mp3 audio file from text.
getAudioBuffertext, [language = 'en']Promise (Buffer)
  • text - The text to convert to audio.
  • fileName - The name of the audio file to create (can include a relative path, ex: ./folder/name).
  • language - The language of the text (ISO 639-1 code) (optional, default is English - en).

Installation

npm install simple-tts-mp3

Usage

// Importing the package and methods
const { createAudioFile, getAudioBuffer } = require('simple-tts-mp3');

// Create an MP3 audio file with Spanish text
createAudioFile('Hola, ¿cómo estás?', 'hello', 'es');

// Get an MP3 audio buffer with Spanish text
getAudioBuffer('Hola, ¿cómo estás?', 'es')
  .then(buffer => {
    // Do something with the buffer
  });

Keywords

FAQs

Package last updated on 24 Apr 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