name: calculate_snr [options] synopsis: calculate_snr -param param.text -input input.dat -output output.dat descr: calculate the signal to noise ratio of a given signal example: calculate_snr -param param.text -input input.dat -output output.dat options and arguments: -param parameter file -input the input file name -output the output file name -debug debug level -help display this help message -c the number of channels (default 1) -f frame duration (default 5 ms) -w window duration (default 30 ms) -s signal threshold (default 80%) -n noise threshold (default 20%) -sf sample frequency (default 8000 Hz) description of parameter file: user can modify parameters as shown below: num_channels = 2; num_bytes = 2; sample_frequency = 16000; signal_threshold = 0.85; noise_threshold = 0.25; window_duration = 30; frame_duration = 5; window_method = hamming; pre_emphasize = on; pre_emphasize_value = 0.9; num_bins = 10000; description of input data file: raw file description of output data file: text indicating signal to noise ratio man page: none