yaspeech

0.0.2 • Public • Published

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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i yaspeech

    Weekly Downloads

    9

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • bifot