speaker 0.0.2 → 0.0.3
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.
- data/lib/speaker/base.rb +2 -2
- data/lib/speaker/version.rb +1 -1
- metadata +1 -1
data/lib/speaker/base.rb
CHANGED
|
@@ -85,7 +85,7 @@ module Speaker
|
|
|
85
85
|
|
|
86
86
|
def type_sentence_and_get_audio(url,audio_file)
|
|
87
87
|
a = Mechanize.new { |agent|
|
|
88
|
-
agent.user_agent_alias = '
|
|
88
|
+
agent.user_agent_alias = 'Mechanize'
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
a.get(url) do |page|
|
|
@@ -127,7 +127,7 @@ module Speaker
|
|
|
127
127
|
if RUBY_PLATFORM.include?("darwin")
|
|
128
128
|
'afplay'
|
|
129
129
|
else
|
|
130
|
-
'mpg123'
|
|
130
|
+
'mpg123 -q'
|
|
131
131
|
end
|
|
132
132
|
end
|
|
133
133
|
|
data/lib/speaker/version.rb
CHANGED