Module: NoyesJava

Defined in:
lib/noyes_java.rb,
lib/java_impl/dct.rb,
lib/java_impl/delta.rb,
lib/java_impl/segment.rb,
lib/java_impl/live_cmn.rb,
lib/java_impl/mel_filter.rb,
lib/java_impl/power_spec.rb,
lib/java_impl/preemphasis.rb,
lib/java_impl/java_filter.rb,
lib/java_impl/log_compress.rb,
lib/java_impl/hamming_window.rb,
lib/java_impl/speech_trimmer.rb,
lib/java_impl/bent_cent_marker.rb,
lib/java_impl/discrete_fourier_transform.rb

Overview

The NoyesJava module encapsulates the Java implementation of the Noyes library. It is otherwise identical to the Noyes and NoyesC modules.

Defined Under Namespace

Modules: JavaFilter Classes: BentCentMarker, DCT, DoubleDeltaFilter, HammingWindow, LiveCMN, LogCompressor, MelFilter, PowerSpectrumFilter, Preemphasizer, Segmenter, SpeechTrimmer

Instance Method Summary collapse

Instance Method Details

#dft(data, size) ⇒ Object



4
5
6
7
8
# File 'lib/java_impl/discrete_fourier_transform.rb', line 4

def dft data, size
  data = data.to_java :double
  x = Java::talkhouse::DiscreteFourierTransform.apply data, size
  x[0].zip(x[1]).map {|r, i| Complex(r,i)}
end