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
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'
})
Package Sidebar
Install
Weekly Downloads