azure_tts 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e36642fc5540cf7e824334fdddff7eec1217157cec2deba3ede4e29f6df02fa8
4
- data.tar.gz: d7288b1332dbd57aaa17fdd70700515e9a2172447b9ed396f204aae980794e0d
3
+ metadata.gz: c018d9e64b355deecdc5c5e33374a9303ae7b4ff21aacf169ff1e4bff553ca2c
4
+ data.tar.gz: b5ed00d2dabecd3789ba7893c43da5ce8c40bca5fbd27c8e2b9cbe53bccbd469
5
5
  SHA512:
6
- metadata.gz: 9bc703b411cf7b6f574cc2f707ed0b9d253e3488c1b267b6519e530460266b0f99baee3b45f0a7d13187ecf8a9d57041ac5f01189176c9ae3e2df70b6faffabf
7
- data.tar.gz: b23867a2d1668c9716658b3d62013284c00f9080687b0f55d88a3914a62271cbb63d2b9dcfa7bc7fe90341b6c803e3939ded1216f0252e8d417fc8345d9adc22
6
+ metadata.gz: 80df9609a1c98a7c908ebab4e35482d78e904a97cd8052ce2b7150122051f576d46b21e0401f1e426d4fe0181702a2054276f4cccda9f00abf58cab94d6c393c
7
+ data.tar.gz: cbd1fb94590cbd5e5172bebf2ca33e0f7ac17e2244403775cbc709e01806c1e3f95b438cff6f934d8c85adab9e3433aed419fc8546cc06ebd5d1426a8820669e
@@ -1,3 +1,3 @@
1
1
  module AzureTts
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/azure_tts.rb CHANGED
@@ -52,13 +52,13 @@ module AzureTTS
52
52
  temp_file.rewind
53
53
 
54
54
  attachment.attach(
55
- io: temp_file,
55
+ io: File.open(temp_file.path),
56
56
  filename: "tts_output_#{Time.now.to_i}.wav",
57
57
  content_type: 'audio/wav'
58
58
  )
59
59
  ensure
60
- temp_file.close
61
- temp_file.unlink
60
+ temp_file&.close
61
+ temp_file&.unlink
62
62
  end
63
63
 
64
64
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_tts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grayson Chen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-10 00:00:00.000000000 Z
11
+ date: 2024-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_speech