espeak-ruby 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/espeak/speech.rb +6 -2
  3. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8a84ef69d4f7376739a28bce0ab2395dfd9326d
4
- data.tar.gz: a17f27305b06bfd175057ba77b3d2412af1137f5
3
+ metadata.gz: 8c33c7798b51552e36abbf539dfeaf35f5301514
4
+ data.tar.gz: a07eaa1a0d4260c1068d9ea419e79f6288ab1c19
5
5
  SHA512:
6
- metadata.gz: 4468d9f4da47b19b93ce511f05b7873c4fc5a7115dc86ede1c02ce98736449a38509d6f4b34378ac01d5691a7119c5289b44e74e1e4ed2be62fd0a2233e101a5
7
- data.tar.gz: 2a5679cedf2bf438148fee7cb4fc2c7d306cd0f96bbfe36b5f750a22bec8094714709cea1f6a588a265626f4334629638eee75b82ac4378cef31b493fd629f76
6
+ metadata.gz: 085cd3f429760d8a7e6d14a61ff829b35d359ec6947fc719abed96d148a52141257e9a0d31c594b58f58739d0a112e9e67b42e62ddfbe81c58c55bdcb3b77b8f
7
+ data.tar.gz: 7ff610fb5401de34f86da41eca76fc528ca0ecbf252a4c2aa338c35187fe01da40e56f6681e96a796b24f5f07bd1dcd131e5e411c5aef62f84319bd71f4e1cac
@@ -19,7 +19,9 @@ module ESpeak
19
19
  # Speaks text
20
20
  #
21
21
  def speak
22
- IO.popen(espeak_command(command_options), 'r').read
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').read
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.3
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: 2016-05-14 00:00:00.000000000 Z
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: