ruby-sox 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +2 -2
- data/lib/sox/cmd.rb +7 -0
- data/lib/sox/combiner.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25ad599fd9cec4a09adcf65a63861e2e7b42a18b
|
4
|
+
data.tar.gz: c0a78ce7756cc91d8eff3806169b1c977459316a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4e34f6f35f9a401e2052f992b4922f7596bc21ca882074c983c302dad2faf4b65712dda9b5bee82d14983d3d27410a17f302a2c5164abaaf7fcd70113ddd748
|
7
|
+
data.tar.gz: e97e22d5a7ffe91a9847e19cd75a8f0a0a180f91c893e6dfd1509c43a6649ffdfaacbaaaae0af14b97d89824848712a2756f4c819abf2141466e0c3e22d6618d
|
data/README.markdown
CHANGED
@@ -62,14 +62,14 @@ to have the same rate and number of channels, and then combines them.
|
|
62
62
|
Concatenate:
|
63
63
|
|
64
64
|
```ruby
|
65
|
-
combiner = Sox::Combiner.new('in1.mp3', 'in2.ogg', 'in3.wav', :combine => :concatenate)
|
65
|
+
combiner = Sox::Combiner.new(['in1.mp3', 'in2.ogg', 'in3.wav'], :combine => :concatenate)
|
66
66
|
combiner.write('out.mp3')
|
67
67
|
```
|
68
68
|
|
69
69
|
Mix 3 files into an MP3 with 2 channels and a rate of 1600:
|
70
70
|
|
71
71
|
```ruby
|
72
|
-
combiner = Sox::Combiner.new('in1.mp3', 'in2.ogg', 'in3.wav', :combine => :mix, :rate => 1600, :channels => 2)
|
72
|
+
combiner = Sox::Combiner.new(['in1.mp3', 'in2.ogg', 'in3.wav'], :combine => :mix, :rate => 1600, :channels => 2)
|
73
73
|
combiner.write('out.mp3')
|
74
74
|
```
|
75
75
|
|
data/lib/sox/cmd.rb
CHANGED
@@ -81,5 +81,12 @@ module Sox
|
|
81
81
|
cmd = CommandBuilder.new(@inputs, @output, @options, @effects).build
|
82
82
|
sh(cmd)
|
83
83
|
end
|
84
|
+
|
85
|
+
# Return the sox command that will be passed to shell.
|
86
|
+
#
|
87
|
+
# @return [String]
|
88
|
+
def to_s
|
89
|
+
CommandBuilder.new(@inputs, @output, @options, @effects).build
|
90
|
+
end
|
84
91
|
end
|
85
92
|
end
|
data/lib/sox/combiner.rb
CHANGED
@@ -6,7 +6,7 @@ module Sox
|
|
6
6
|
#
|
7
7
|
# @example
|
8
8
|
# # Concatenate
|
9
|
-
# combiner = Sox::Combiner.new('in1.mp3', 'in2.ogg', 'in3.wav', :combine => :concatenate)
|
9
|
+
# combiner = Sox::Combiner.new(['in1.mp3', 'in2.ogg', 'in3.wav'], :combine => :concatenate)
|
10
10
|
# combiner.write('out.mp3')
|
11
11
|
class Combiner
|
12
12
|
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-sox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- TMX Credit
|
7
8
|
- Potapov Sergey
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2014-09-15 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
@@ -81,7 +82,9 @@ dependencies:
|
|
81
82
|
- !ruby/object:Gem::Version
|
82
83
|
version: '0'
|
83
84
|
description: Wrapper around sox sound tool
|
84
|
-
email:
|
85
|
+
email:
|
86
|
+
- rubygems@tmxcredit.com
|
87
|
+
- blake131313@gmail.com
|
85
88
|
executables: []
|
86
89
|
extensions: []
|
87
90
|
extra_rdoc_files:
|