npm.io
0.0.2 • Published 9 years ago

yaspeech

Licence
MIT
Version
0.0.2
Deps
2
Vulns
2
Weekly
0

Ya Speech

Module for Yandex Speech API.

Install

$ npm i yaspeech --save

Usage

const Speech = require('yaspeech')

const api = new Speech(process.env.speech_token)

api.speech({
  filename: 'example',
  text: 'Hello, world!',
  format: 'mp3',
  lang: 'en-US',
  speaker: 'oksana',
  speed: 0.7,
  emotion: 'evil'
}).then(file => {
  console.log(file) // => 'example.mp3'
})

License

MIT.

Keywords