speak-something

1.0.2 • Public • Published

speak-something

Install

$ npm install --save speak-something

options

  • rate[number]: the speed at which the utterance will be spoken at
  • lang[zh-cmn|en|...]: the language of the utterance
  • pitch[number]: the pitch at which the utterance will be spoken at
  • volume[number < 1]: the volume that the utterance will be spoken at

Usage

lang="zh-cmn-Hans"
const { speakSomething } = require('speak-something')

Example

const { speakSomething } = require('speak-something')

speakSomething('测试')
speakSomething('测试', {
  rate: 2,
  lang: 'zh-cmn',
  pitch: 2,
  volume: 0.5
})
speakSomething('say something', {
  rate: 1,
  lang: 'en'
})

Readme

Keywords

Package Sidebar

Install

npm i speak-something

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

1.19 kB

Total Files

3

Last publish

Collaborators

  • junda.mao