1.0.2 • Published 3 years ago
speak-something v1.0.2
speak-something
Install
$ npm install --save speak-something
options
- ratenumber: the speed at which the utterance will be spoken at
- langzh-cmn|en|...: the language of the utterance
- pitchnumber: the pitch at which the utterance will be spoken at
- volumenumber < 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'
})