festivaltts4r 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of festivaltts4r might be problematic. Click here for more details.
- data/CHANGELOG.txt +0 -0
- data/Manifest.txt +4 -2
- data/Rakefile +3 -3
- data/lib/festivaltts4r/festival4r.rb +21 -0
- data/lib/festivaltts4r/version.rb +1 -1
- metadata +19 -13
data/CHANGELOG.txt
ADDED
File without changes
|
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
@@ -11,9 +11,9 @@ require 'hoe'
|
|
11
11
|
include FileUtils
|
12
12
|
require File.join(File.dirname(__FILE__), 'lib', 'festivaltts4r', 'version')
|
13
13
|
|
14
|
-
AUTHOR = "
|
15
|
-
EMAIL = "
|
16
|
-
DESCRIPTION = "
|
14
|
+
AUTHOR = "Sergio Espeja"
|
15
|
+
EMAIL = "sergio.espeja@gmail.com"
|
16
|
+
DESCRIPTION = "Text-to-speech for Ruby using festivaltts. Provides two new methods for String: to_speech and to_mp3. Requires festivaltts and lame."
|
17
17
|
GEM_NAME = "festivaltts4r" # what ppl will type to install your gem
|
18
18
|
RUBYFORGE_PROJECT = "festivaltts4r" # The unix name for your project
|
19
19
|
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#
|
2
|
+
# Ruby Interface to festival tts system
|
3
|
+
#
|
4
|
+
|
5
|
+
class String
|
6
|
+
|
7
|
+
def to_speech(params={})
|
8
|
+
|
9
|
+
text = params[:text] || self
|
10
|
+
language = "--language " + params[:language] if params[:language]
|
11
|
+
system("echo \"#{text.to_s}\" | festival --tts #{language}")
|
12
|
+
end
|
13
|
+
|
14
|
+
def to_mp3(filename, params={})
|
15
|
+
|
16
|
+
text = params[:text] || self
|
17
|
+
raise "to_mp3 language option still not implemented" if params[:language]
|
18
|
+
system("echo \"#{text.to_s}\" | text2wave | lame --alt-preset cbr 16 -a --resample 11 --lowpass 5 --athtype 2 -X3 - > #{filename} 2> /dev/null")
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
metadata
CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: festivaltts4r
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-
|
8
|
-
summary:
|
6
|
+
version: 0.1.1
|
7
|
+
date: 2007-05-30 00:00:00 +02:00
|
8
|
+
summary: "Text-to-speech for Ruby using festivaltts. Provides two new methods for String: to_speech and to_mp3. Requires festivaltts and lame."
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
|
-
email:
|
11
|
+
email: sergio.espeja@gmail.com
|
12
12
|
homepage: http://festivaltts4r.rubyforge.org
|
13
13
|
rubyforge_project: festivaltts4r
|
14
|
-
description:
|
14
|
+
description: "Text-to-speech for Ruby using festivaltts. Provides two new methods for String: to_speech and to_mp3. Requires festivaltts and lame."
|
15
15
|
autorequire:
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
@@ -27,23 +27,29 @@ signing_key:
|
|
27
27
|
cert_chain:
|
28
28
|
post_install_message:
|
29
29
|
authors:
|
30
|
-
-
|
30
|
+
- Sergio Espeja
|
31
31
|
files:
|
32
|
+
- CHANGELOG.txt
|
32
33
|
- History.txt
|
33
34
|
- Manifest.txt
|
34
35
|
- README.txt
|
35
36
|
- Rakefile
|
36
|
-
- setup.rb
|
37
37
|
- lib/festivaltts4r.rb
|
38
|
+
- lib/festivaltts4r/festival4r.rb
|
38
39
|
- lib/festivaltts4r/version.rb
|
39
|
-
-
|
40
|
+
- setup.rb
|
40
41
|
- test/festivaltts4r_test.rb
|
42
|
+
- test/test_helper.rb
|
41
43
|
test_files:
|
42
44
|
- test/festivaltts4r_test.rb
|
43
|
-
rdoc_options:
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
rdoc_options:
|
46
|
+
- --main
|
47
|
+
- README.txt
|
48
|
+
extra_rdoc_files:
|
49
|
+
- CHANGELOG.txt
|
50
|
+
- History.txt
|
51
|
+
- Manifest.txt
|
52
|
+
- README.txt
|
47
53
|
executables: []
|
48
54
|
|
49
55
|
extensions: []
|
@@ -58,5 +64,5 @@ dependencies:
|
|
58
64
|
requirements:
|
59
65
|
- - ">="
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.1
|
67
|
+
version: 1.2.1
|
62
68
|
version:
|