VoiceText Web API beta client for node.js
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit ec883ac Oct 12, 2016
Permalink
Failed to load latest commit information.
lib
sample
src
.gitignore
.npmignore
.travis.yml
Gruntfile.coffee
LICENSE
README.md fixed typo on travis badge Jul 9, 2014
package.json

README.md

voicetext Build Status

VoiceText Web API beta client for node.js

Getting Started

Install the module with: npm install voicetext

Documentation

See official api doc

voice
.speaker(voice.SPEAKER.HIKARI)
.emotion(voice.EMOTION.HAPPINESS)
.emotion_level(voice.EMOTION_LEVEL.HIGH)
.pitch(200)
.speed(400)
.volume(200)
.speak 'きょうもいちにちがんばるぞい', (e, buf)->

Examples

VoiceText = require 'voicetext'

voice = new VoiceText('<your api key>')
voice
.speaker(voice.SPEAKER.HIKARI)
.speak 'おはようございます', (e, buf)->
  console.error e if e
  fs.writeFile './test.wav', buf, 'binary', (e)->
    console.error e if e
    # ./test.wav file generated

Release History

(Nothing yet)

License

Copyright (c) 2014 pchw. Licensed under the MIT license.