speak_slow 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/speak_slow.rb +3 -1
- data/lib/speak_slow/version.rb +1 -1
- metadata +1 -1
data/lib/speak_slow.rb
CHANGED
@@ -121,9 +121,11 @@ module SpeakSlow
|
|
121
121
|
speed = "tempo -s #{@speed}"
|
122
122
|
pad = "pad 0 #{@silence.to_f * @speed}"
|
123
123
|
`#{@sox} #{in_filepath} -p #{silence} #{pad} : restart | #{@sox} - -p | #{@sox} - #{out_filepath} #{speed}`
|
124
|
-
|
124
|
+
elsif @silence and @silence != 0
|
125
125
|
pad = "pad 0 #{@silence.to_f}"
|
126
126
|
`#{@sox} #{in_filepath} -p #{silence} #{pad} : restart | #{@sox} - #{out_filepath} `
|
127
|
+
else
|
128
|
+
`cp #{in_filepath} #{out_filepath}`
|
127
129
|
end
|
128
130
|
end
|
129
131
|
|
data/lib/speak_slow/version.rb
CHANGED