infobot-sber-tts

1.0.2 • Public • Published

infobot-sber-tts

Node.JS library for Sber SmartSpeech service. Library can synchronously synthesize speech from text.

To work with this library you need to obtain from Sber SmartSpeech:

  • Client ID
  • Client Secret

Please check this page for information about credentials.

Audio file synthesize example:

var SberTTS = require('infobot-sber-tts');
var fs = require('fs');

var clientID = '*';
var clientSecret = '*';

var tts = new SberTTS(clientID, clientSecret);
tts.generateAudio('Привет, мир!', {
    format: 'opus',
    voice: 'Nec_24000'
}).then(res => {
    fs.writeFileSync('test.opus', res);
}).catch(err => console.log(err));

Provided by INFOBOT LLC. under Apache 2.0 license.

Package Sidebar

Install

npm i infobot-sber-tts

Weekly Downloads

1

Version

1.0.2

License

Apache-2.0

Unpacked Size

28.8 kB

Total Files

7

Last publish

Collaborators

  • infobot