infobot-sber-tts
v1.0.2
Published
Node.JS library for Sber SmartSpeech Text-To-Speech
Downloads
12
Maintainers
Readme
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.