0.0.0 • Published 9 years ago
itako-text-reader-speech-synthesis v0.0.0
Itako Text Reader Speech Synthesis
Installation
npm install itako-text-reader-speech-synthesis --save
Usage
ItakoTextReaderSpeechSynthesis(type, options)
-> reader
specify instance as first argument of the Itako constructor as the value of the array.
<script src="https://npmcdn.com/itako"></script>
<script src="https://npmcdn.com/itako-text-reader-speech-synthesis"></script>
<script>
var reader = new ItakoTextReaderSpeechSynthesis('text', {
// default token volume (1~0)
volume: 1,
// default token pitch (2~0)
pitch: 1,
// default token reading speed (rate) (2~0.1)
speed: 2,
// default reading language (en,ja-JP,etc...)
lang: 'en',
// if specify SpeechSynthesisVoice.name, it use instance
// see also: `speechSynthesis.getVoices().map((voice)=> voice.name)`
speaker: 'Victoria',
});
var itako = new Itako([reader]);
// read the first argument
itako.read('greeting');
</script>
See also
Development
Requirement global
- NodeJS v5.10.0
- Npm v3.7.1
- Chrome Launcher 49.0.2623 (Mac OS X 10.11.4)
git clone https://github.com/itakojs/itako-text-reader-speech-synthesis
cd itako-text-reader-speech-synthesis
npm install
npm test
License
0.0.0
9 years ago