speaker 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- 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