Introduction
Introduction Statistics Contact Development Disclaimer Help
Remove deprecated sox option (thanks Kris) - warvox - VoIP based wardialing too…
Log
Files
Refs
README
---
commit b4771a83b97259eb24dc6e07ff8b00d239c7a747
parent 8efdd0d3eeb997d0961cb507ed57d97d0842fe63
Author: HD Moore <[email protected]>
Date: Sat, 9 May 2009 03:34:04 +0000
Remove deprecated sox option (thanks Kris)
Diffstat:
M bin/create_media.rb | 2 +-
M bin/create_ui.rb | 2 +-
M lib/warvox/jobs/analysis.rb | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/bin/create_media.rb b/bin/create_media.rb
@@ -76,7 +76,7 @@ dir.entries.sort.each do |ent|
datfile.close
# Generate a MP3 audio file
- system("sox -s -w -r 8000 -t raw -c 1 #{rawfile.path} #{dst}/#{num}.wa…
+ system("sox -s -2 -r 8000 -t raw -c 1 #{rawfile.path} #{dst}/#{num}.wa…
system("lame #{dst}/#{num}.wav #{dst}/#{num}.mp3 >/dev/null 2>&1")
File.unlink("#{dst}/#{num}.wav")
File.unlink(rawfile.path)
diff --git a/bin/create_ui.rb b/bin/create_ui.rb
@@ -84,7 +84,7 @@ dir.entries.sort.each do |ent|
# Generate a MP3 audio file
- system("sox -s -w -r 8000 -t raw -c 1 #{rawfile.path} #{dst}/#{num}.wa…
+ system("sox -s -2 -r 8000 -t raw -c 1 #{rawfile.path} #{dst}/#{num}.wa…
system("lame #{dst}/#{num}.wav #{dst}/#{num}.mp3 >/dev/null 2>&1")
File.unlink("#{dst}/#{num}.wav")
File.unlink(rawfile.path)
diff --git a/lib/warvox/jobs/analysis.rb b/lib/warvox/jobs/analysis.rb
@@ -294,7 +294,7 @@ class Analysis < Base
frefile.path
# Generate a MP3 audio file
- system("sox -s -w -r 8000 -t raw -c 1 #{rawfile.path} #{bname}…
+ system("sox -s -2 -r 8000 -t raw -c 1 #{rawfile.path} #{bname}…
system("lame #{bname}.wav #{bname}.mp3 >/dev/null 2>&1")
File.unlink("#{bname}.wav")
File.unlink(rawfile.path)
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.