Code Monkey home page Code Monkey logo

neospeech's Introduction

Neospeech

Ruby wrapper for NeoSpeech Text to Speech API. Neospeech engine provides highly customizable high quality TTS conversion (http://www.gizmag.com/go/2708/). The gem is written to consume the TTS engine of NeoSpeech as REST Webservice via various helper methods. This is pre-release andt the gem is under active developement. Test cases plus documentation are the next priority.

Installation

Add this line to your application's Gemfile:

gem 'neospeech'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install neospeech

Configuration

Before using, you must register with nespeech https://ws.neospeech.com and add a configuration file containing account and API keys.

# config/initializers/text_to_speech.rb

Neospeech.setup do |config|
  config.email = 'your-email'
  config.account_id = 'neospeech-account-id'
  config.login_key = 'your-login-key'
  config.login_password = 'your-api-password'
end

Usage

This wrapper supports there voices - 'paul', 'kate', 'julie' and comes with built-in string helper to provide a downloadable audio url.

'Hello World'.speak 'kate'
#=> "https://tts.neospeech.com/audio/a.php/4682669/a97ec98568f8/result_11.wav"

Any name may be used (single word). If the TTS engine does not supports, kate voice will be used.

Five ready made speech speed can also be specified. Default is normal

'very slow' , 'slow', 'normal', 'fast', 'very fast'

'Hello World'.speak 'kate', 'fast'

For more control over the speech integer between 50 and 400 can be specified.

'Hello World'.speak 'kate', 95

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

neospeech's People

Contributors

abhishek-sourcebits avatar dr-r3d avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.