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.
@@ -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
- else
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
 
@@ -1,3 +1,3 @@
1
1
  module SpeakSlow
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speak_slow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: