0.0.2 • Published 7 years ago

yaspeech v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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.