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

infobot-yandex-tts

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infobot-yandex-tts

Node.JS library for Yandex Cloud Text-to-Speech

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

infobot-yandex-tts

Node.JS library for Yandex Speech Cloud service. Library can be used to generate audio files from text with TTS service.

To work with this library you need to obtain from Yandex Cloud:

  • Private key in PEM format
  • Service ID
  • Service Key
  • Folder ID

Please check this page for information about service accounts.

Audio file generation example:

const TTS = require('infobot-yandex-tts');
const fs = require('fs');

const key = SERVICE_KEY ;
const folder_id = FOLDER_ID;
const service_id = SERVICE_ID;

const tts = new TTS(service_id, key, folder_id, fs.readFileSync('./yandex.pem'));
tts.generateAudio('Привет, это тест. А меня зовут Алёна.', {
    voice: 'alena'
}).then(res => {
    fs.writeFileSync('out.ogg', res);
}).catch(err => {
    console.error(err);
});

Provided by INFOBOT LLC. under ISC license.

Keywords

FAQs

Package last updated on 12 Apr 2020

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