Sha256: f07287b0f5af49e709b43bf0edbe45c6f438b63548afe743840eade633734a3a
Contents?: true
Size: 352 Bytes
Versions: 5
Compression:
Stored size: 352 Bytes
Contents
#!/usr/bin/env ruby require 'rsox-command' file = ARGV.first stats = Sox::Stats.new(file) begin $stderr.puts "#{file} rms_level:#{stats.rms_level}dB rms_peak:#{stats.rms_peak}dB" if $DEBUG if stats.silent? puts "silent" exit 0 else puts "not silent" exit 1 end rescue => e $stderr.puts "Error: #{file}, #{e}" exit 2 end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rsox-command-0.0.5 | bin/silent-file |
rsox-command-0.0.4 | bin/silent-file |
rsox-command-0.0.3 | bin/silent-file |
rsox-command-0.0.2 | bin/silent-file |
rsox-command-0.0.1 | bin/silent-file |