voicerss2017e 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/voicerss2017e.rb +4 -6
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450b0b97298ebf616505849508664fa745478ec2
|
4
|
+
data.tar.gz: 6dc1ed46ee161af1beac8eb9e456bf1f2daf0b19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95b4294fc9b87aad4366fa72eb1f0d9b89b06a7fb44c96db077ede7fcdd30152343e96c9e0ff2d186e00a4a14bbeb0fe8d9f75cb5500018091662d5a2b7e1fc3
|
7
|
+
data.tar.gz: 50005d9d53a5e4720a450d6c866870be5f4306ad6637455e8a5bd5c37586b1206c97cd181d2a5d272e4c8651616025948995c92d21c25daa64a9b397817a82cb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/voicerss2017e.rb
CHANGED
@@ -36,16 +36,14 @@ class VoiceRSSe
|
|
36
36
|
# attempts to find the audio file from a local cache instead of
|
37
37
|
# making a relatively expensive request through the web API
|
38
38
|
|
39
|
-
if File.exists? filename then
|
40
|
-
|
41
|
-
FileUtils.cp filename, audiofile_out
|
42
|
-
|
43
|
-
else
|
39
|
+
if not File.exists? filename then
|
44
40
|
|
45
|
-
voice = VoiceRSS.speech(@config.merge({'src' => text}))
|
41
|
+
voice = VoiceRSS.speech(@config.merge!({'src' => text}))
|
46
42
|
File.write filename, voice['response']
|
47
43
|
|
48
44
|
end
|
45
|
+
|
46
|
+
FileUtils.cp filename, audiofile_out
|
49
47
|
|
50
48
|
end
|
51
49
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|