infobot-tinkoff-tts

1.0.3 • Public • Published

infobot-tinkoff-tts

Node.JS library for Tinkoff Voicekit TTS service. Library can be used to generate audio files from text with TTS service.

Based on examples for Node.JS from https://github.com/TinkoffCreditSystems/voicekit-examples/tree/master/nodejs

To work with this library you need to obtain from Tinkoff VoiceKit:

  • API key
  • Secret key

Please check this page for information about registration process.

Audio file generation example:

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

const key = API_KEY ;
const secret = SECRET_KEY;

const tts = new TTS(key, secret, 'oleg');
tts.generateAudio('Привет, это тест голоса Олег').then(res => {
    fs.writeFileSync('out.wav', res);
}).catch(err => {
    console.error(err);
});

Supported voices:

  • oleg - Russian Male
  • alyona - Russian Female

Provided by INFOBOT LLC. under ISC license.

Package Sidebar

Install

npm i infobot-tinkoff-tts

Weekly Downloads

8

Version

1.0.3

License

ISC

Unpacked Size

15.2 kB

Total Files

6

Last publish

Collaborators

  • infobot