Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including voicetext with all npm packages installed. Try it out:

var voicetext = require("voicetext")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

voicetext v0.0.7

voicetext client

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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free