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 +4 -4
- data/lib/azure_tts/version.rb +1 -1
- data/lib/azure_tts.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c018d9e64b355deecdc5c5e33374a9303ae7b4ff21aacf169ff1e4bff553ca2c
|
4
|
+
data.tar.gz: b5ed00d2dabecd3789ba7893c43da5ce8c40bca5fbd27c8e2b9cbe53bccbd469
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80df9609a1c98a7c908ebab4e35482d78e904a97cd8052ce2b7150122051f576d46b21e0401f1e426d4fe0181702a2054276f4cccda9f00abf58cab94d6c393c
|
7
|
+
data.tar.gz: cbd1fb94590cbd5e5172bebf2ca33e0f7ac17e2244403775cbc709e01806c1e3f95b438cff6f934d8c85adab9e3433aed419fc8546cc06ebd5d1426a8820669e
|
data/lib/azure_tts/version.rb
CHANGED
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
|
61
|
-
temp_file
|
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.
|
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-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_speech
|