Git Product home page Git Product logo

espeak-ruby's Introduction

espeak-ruby

espeak-ruby is small Ruby API for utilizing ‘espeak’ and ‘lame’ to create Text-To-Speech mp3 files.

  • eSpeak is a compact open source software speech synthesizer for English and other languages, for Linux and Windows.

  • LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL.

Install

gem install espeak-ruby

Example

require 'rubygems'
require 'espeak-ruby'

include ESpeak

# Creates hello.mp3 file
espeak("hello.mp3", :text => "Hello World") 

# Creates /home/espeak/hello-de.mp3 file
espeak("/home/espeak/hello-de.mp3", :text => "Hallo Welt", :voice => "de")

Features

Currently only subset of espeak features is supported.

:voice => 'en',   # use voice file of this name from espeak-data/voices
:pitch => 50,     # pitch adjustment, 0 to 99
:speed => 170     # speed in words per minute, 80 to 370

These are default values, and they can be easily overridden:

espeak("zdravo.mp3", :text => "Zdravo svete", :voice => "sr", :pitch => 90, :speed => 200)

Requirements

  • espeak-http - Micro web app for Text-To-Speech conversion via HTTP powered by Ruby, Sinatra, lame, espeak and espeak-ruby

Credits

Author: Dejan Simic

espeak-ruby's People

Contributors

dejan avatar

Stargazers

M Bougie avatar

Watchers

M Bougie 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.