espeak-ruby 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/espeak/speech.rb +6 -2
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c33c7798b51552e36abbf539dfeaf35f5301514
|
4
|
+
data.tar.gz: a07eaa1a0d4260c1068d9ea419e79f6288ab1c19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 085cd3f429760d8a7e6d14a61ff829b35d359ec6947fc719abed96d148a52141257e9a0d31c594b58f58739d0a112e9e67b42e62ddfbe81c58c55bdcb3b77b8f
|
7
|
+
data.tar.gz: 7ff610fb5401de34f86da41eca76fc528ca0ecbf252a4c2aa338c35187fe01da40e56f6681e96a796b24f5f07bd1dcd131e5e411c5aef62f84319bd71f4e1cac
|
data/lib/espeak/speech.rb
CHANGED
@@ -19,7 +19,9 @@ module ESpeak
|
|
19
19
|
# Speaks text
|
20
20
|
#
|
21
21
|
def speak
|
22
|
-
IO.popen(espeak_command(command_options), 'r')
|
22
|
+
IO.popen(espeak_command(command_options), 'r') do |process|
|
23
|
+
process.read
|
24
|
+
end
|
23
25
|
end
|
24
26
|
|
25
27
|
# Generates mp3 file as a result of
|
@@ -52,7 +54,9 @@ module ESpeak
|
|
52
54
|
# Text-To-Speech conversion.
|
53
55
|
#
|
54
56
|
def bytes_wav()
|
55
|
-
IO.popen(espeak_command(command_options, "--stdout"), 'r')
|
57
|
+
IO.popen(espeak_command(command_options, "--stdout"), 'r') do |process|
|
58
|
+
process.read
|
59
|
+
end
|
56
60
|
end
|
57
61
|
|
58
62
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: espeak-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dejan Simic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: espeak-ruby is small Ruby API for utilizing ‘espeak’ and ‘lame’ to create
|
14
14
|
Text-To-Speech mp3 files
|
@@ -52,4 +52,3 @@ specification_version: 4
|
|
52
52
|
summary: espeak-ruby is small Ruby API for utilizing ‘espeak’ and ‘lame’ to create
|
53
53
|
Text-To-Speech mp3 files
|
54
54
|
test_files: []
|
55
|
-
has_rdoc:
|