GithubHelp home page GithubHelp logo

vocalware's Introduction

Vocalware

Build Status

Ruby client for the Vocalware REST API.

Install

Add vocalware to your Gemfile:

gem 'vocalware'

Run bundle install.

Usage

Lookup a voice by its attributes:

voice = Vocalware::Voice.find(:lang => :en, :name => 'Kate')

As attributes you can also use engine_id, lang_id, voice_id, gender.

Initialize a client:

client = Vocalware::Client.new(
  :secret_phrase => SECRET_PHRASE,
  :api_id        => API_ID,
  :account_id    => ACCOUNT_ID,
  :voice         => voice
)

Generate speech from text:

audio_data = client.gen('Say hello on a night like this!')
File.binwrite('./cure.mp3', audio_data)

Override attributes for a single request

If you need to say few words in Spanish, you can override the :voice attribute for one single request:

voice = Vocalware::Vocalware.find(:lang => :es, :name => 'Juan')
client.gen('Hola! Qué tal estás?', :voice => voice)

Running tests

rake spec

Credits

Copyright

Copyright (c) 2013 TMX Credit. See LICENSE.txt for further details.

vocalware's People

Contributors

greyblake avatar pk-rawat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.