🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

dejan-espeak-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dejan-espeak-ruby

0.3.0
Rubygems
Version published
Maintainers
1
Created
Source

= 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

sudo gem install dejan-espeak-ruby --source http://gems.github.com

== 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

This can be easily overriden:

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

== Requirements

  • Linux or Windows (I failed in trying to compile espeak on Mac)
  • http://espeak.sourceforge.net
  • http://lame.sourceforge.net/index.php

== Related

== Credits

Author: Dejan Simic ~ http://rors.org

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts