public bool InitRawMode(PocketSphinxAudioRecorder recoder, AdFunction adfunction) { this.Close(); if (this.handle == IntPtr.Zero && recoder != null && recoder.Handle != IntPtr.Zero) { return((this.handle = cont_ad_init_rawmode(recoder.Handle, adfunction)) != IntPtr.Zero); } return(false); }
public bool Init(PocketSphinxAudioRecorder recoder) { this.Close(); if (this.handle == IntPtr.Zero && recoder != null && recoder.Handle != IntPtr.Zero) { return((this.handle = cont_ad_init(recoder.Handle, IntPtr.Zero)) != IntPtr.Zero); } return(false); }
public PocketSphinxEntry() { this.engine = new PocketSphinx(); this.recoder = new PocketSphinxAudioRecorder(); this.cont = new PocketSphinxAudioContinuousProcessor(); }