Class: Signatures::Dialtone

Inherits:
Object
  • Object
show all
Defined in:
lib/signatures/dialtone.rb

Class Method Summary collapse

Class Method Details

.process(data) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/signatures/dialtone.rb', line 3

def self.process data
  #
  # Dial tone detection (440hz + 350hz)
  #
  if(data[:fcnt][440] > 1.0 and data[:fcnt][350] > 1.0)
    return 'dialtone'
  end
end