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 ADDED
File without changes
data/Manifest.txt CHANGED
@@ -1,9 +1,11 @@
1
+ CHANGELOG.txt
1
2
  History.txt
2
3
  Manifest.txt
3
4
  README.txt
4
5
  Rakefile
5
- setup.rb
6
6
  lib/festivaltts4r.rb
7
+ lib/festivaltts4r/festival4r.rb
7
8
  lib/festivaltts4r/version.rb
8
- test/test_helper.rb
9
+ setup.rb
9
10
  test/festivaltts4r_test.rb
11
+ test/test_helper.rb
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 = "spejman" # can also be an array of Authors
15
- EMAIL = "your contact email for bug fixes and info"
16
- DESCRIPTION = "description of gem"
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
@@ -2,7 +2,7 @@ module Festivaltts4r #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  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.0
7
- date: 2007-02-05 00:00:00 +01:00
8
- summary: description of gem
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: your contact email for bug fixes and info
11
+ email: sergio.espeja@gmail.com
12
12
  homepage: http://festivaltts4r.rubyforge.org
13
13
  rubyforge_project: festivaltts4r
14
- description: description of gem
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
- - spejman
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
- - test/test_helper.rb
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
- extra_rdoc_files: []
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.6
67
+ version: 1.2.1
62
68
  version: