Small package that starts an instance of a chromium in headless mode (but with mouth), setup yandex text-to-speech engine and able to recive and play text.
npm install node-speechkit --save
const speechkit = require('node-speechkit')
speechkit({apikey: 'valid_api_key'}).then(async speak => {
await speak('hello')
await speak('пока', {
speaker: 'zahar',
emotion: 'neutral',
speed: 1.9,
lang: 'ru-RU'
})
})
Speechkit can be configurated with params passed to speechkit
or to the speak
command.
Default parameters are:
{
emotion: 'good',
speed: 1,
lang: 'en-US',
speaker: 'ermil'
}
Full list of available options is here.