コード例 #1
0
ファイル: Jsgf.cs プロジェクト: berlamont/sphinx
        public JsgfRule GetRule(string name)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.Jsgf_GetRule(swigCPtr, name);
            JsgfRule ret = (cPtr == global::System.IntPtr.Zero) ? null : new JsgfRule(cPtr, false);

            return(ret);
        }
コード例 #2
0
ファイル: Jsgf.cs プロジェクト: berlamont/sphinx
        public JsgfIterator GetEnumerator()
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.Jsgf_GetEnumerator(swigCPtr);
            JsgfIterator          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new JsgfIterator(cPtr, true);

            return(ret);
        }
コード例 #3
0
ファイル: NGramModelSet.cs プロジェクト: 180D-FW-2020/Team13
        public NGramModel Lookup(string name)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModelSet_Lookup(swigCPtr, name);
            NGramModel            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModel(cPtr, false);

            return(ret);
        }
コード例 #4
0
ファイル: NGramModelSet.cs プロジェクト: 180D-FW-2020/Team13
        public NGramModel Add(NGramModel model, string name, float weight, bool reuse_widmap)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModelSet_Add(swigCPtr, NGramModel.getCPtr(model), name, weight, reuse_widmap);
            NGramModel            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModel(cPtr, false);

            return(ret);
        }
コード例 #5
0
ファイル: Jsgf.cs プロジェクト: berlamont/sphinx
        public FsgModel BuildFsg(JsgfRule rule, LogMath logmath, float lw)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.Jsgf_BuildFsg(swigCPtr, JsgfRule.getCPtr(rule), LogMath.getCPtr(logmath), lw);
            FsgModel ret = (cPtr == global::System.IntPtr.Zero) ? null : new FsgModel(cPtr, false);

            return(ret);
        }
コード例 #6
0
        public static NGramModel FromIter(SWIGTYPE_p_void itor)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModel_FromIter(SWIGTYPE_p_void.getCPtr(itor));
            NGramModel            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModel(cPtr, false);

            return(ret);
        }
コード例 #7
0
        public NGramModel GetCurrent()
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModelSetIterator_GetCurrent(swigCPtr);
            NGramModel            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModel(cPtr, false);

            return(ret);
        }
コード例 #8
0
ファイル: JsgfRule.cs プロジェクト: berlamont/sphinx
        public static JsgfRule FromIter(SWIGTYPE_p_void itor)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.JsgfRule_FromIter(SWIGTYPE_p_void.getCPtr(itor));
            JsgfRule ret = (cPtr == global::System.IntPtr.Zero) ? null : new JsgfRule(cPtr, false);

            return(ret);
        }
コード例 #9
0
ファイル: JsgfIterator.cs プロジェクト: berlamont/sphinx
        public JsgfRule GetCurrent()
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.JsgfIterator_GetCurrent(swigCPtr);
            JsgfRule ret = (cPtr == global::System.IntPtr.Zero) ? null : new JsgfRule(cPtr, false);

            return(ret);
        }
コード例 #10
0
ファイル: NGramModelSet.cs プロジェクト: 180D-FW-2020/Team13
        public NGramModelSetIterator GetEnumerator()
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModelSet_GetEnumerator(swigCPtr);
            NGramModelSetIterator ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModelSetIterator(cPtr, true);

            return(ret);
        }
コード例 #11
0
ファイル: JsgfRule.cs プロジェクト: 180D-FW-2020/Team13
 public virtual void Dispose()
 {
     lock(this) {
       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       SphinxBasePINVOKE.delete_JsgfRule(swigCPtr);
     }
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
       }
       global::System.GC.SuppressFinalize(this);
     }
 }
コード例 #12
0
 public void Reset()
 {
     SphinxBasePINVOKE.NGramModelSetIterator_Reset(swigCPtr);
 }
コード例 #13
0
ファイル: Config.cs プロジェクト: 180D-FW-2020/Team13
        public int GetInt(string key)
        {
            int ret = SphinxBasePINVOKE.Config_GetInt(swigCPtr, key);

            return(ret);
        }
コード例 #14
0
ファイル: Config.cs プロジェクト: 180D-FW-2020/Team13
        public bool Exists(string key)
        {
            bool ret = SphinxBasePINVOKE.Config_Exists(swigCPtr, key);

            return(ret);
        }
コード例 #15
0
ファイル: Config.cs プロジェクト: 180D-FW-2020/Team13
 public void SetFloat(string key, double val)
 {
     SphinxBasePINVOKE.Config_SetFloat(swigCPtr, key, val);
 }
コード例 #16
0
ファイル: Config.cs プロジェクト: 180D-FW-2020/Team13
 public void SetBoolean(string key, bool val)
 {
     SphinxBasePINVOKE.Config_SetBoolean(swigCPtr, key, val);
 }
コード例 #17
0
ファイル: FrontEnd.cs プロジェクト: 180D-FW-2020/Team13
        public int ProcessUtt(string spch, uint nsamps, SWIGTYPE_p_p_p_mfcc_t cep_block)
        {
            int ret = SphinxBasePINVOKE.FrontEnd_ProcessUtt(swigCPtr, spch, nsamps, SWIGTYPE_p_p_p_mfcc_t.getCPtr(cep_block));

            return(ret);
        }
コード例 #18
0
ファイル: FrontEnd.cs プロジェクト: 180D-FW-2020/Team13
 public FrontEnd() : this(SphinxBasePINVOKE.new_FrontEnd(), true)
 {
 }
コード例 #19
0
ファイル: FrontEnd.cs プロジェクト: 180D-FW-2020/Team13
        public int OutputSize()
        {
            int ret = SphinxBasePINVOKE.FrontEnd_OutputSize(swigCPtr);

            return(ret);
        }
コード例 #20
0
 public void Casefold(int kase)
 {
     SphinxBasePINVOKE.NGramModel_Casefold(swigCPtr, kase);
 }
コード例 #21
0
ファイル: Config.cs プロジェクト: 180D-FW-2020/Team13
        public string GetString(string key)
        {
            string ret = SphinxBasePINVOKE.Config_GetString(swigCPtr, key);

            return(ret);
        }
コード例 #22
0
        public int Size()
        {
            int ret = SphinxBasePINVOKE.NGramModel_Size(swigCPtr);

            return(ret);
        }
コード例 #23
0
ファイル: Config.cs プロジェクト: 180D-FW-2020/Team13
 public void SetInt(string key, int val)
 {
     SphinxBasePINVOKE.Config_SetInt(swigCPtr, key, val);
 }
コード例 #24
0
        public int AddWord(string word, float weight)
        {
            int ret = SphinxBasePINVOKE.NGramModel_AddWord(swigCPtr, word, weight);

            return(ret);
        }
コード例 #25
0
ファイル: Config.cs プロジェクト: 180D-FW-2020/Team13
 public void SetStringExtra(string key, string val)
 {
     SphinxBasePINVOKE.Config_SetStringExtra(swigCPtr, key, val);
 }
コード例 #26
0
ファイル: Feature.cs プロジェクト: 180D-FW-2020/Team13
 public Feature() : this(SphinxBasePINVOKE.new_Feature(), true)
 {
 }
コード例 #27
0
ファイル: Config.cs プロジェクト: 180D-FW-2020/Team13
        public bool GetBoolean(string key)
        {
            bool ret = SphinxBasePINVOKE.Config_GetBoolean(swigCPtr, key);

            return(ret);
        }
コード例 #28
0
 public NGramModelSetIterator(SWIGTYPE_p_void ptr) : this(SphinxBasePINVOKE.new_NGramModelSetIterator(SWIGTYPE_p_void.getCPtr(ptr)), true)
 {
 }
コード例 #29
0
ファイル: Config.cs プロジェクト: 180D-FW-2020/Team13
        public double GetFloat(string key)
        {
            double ret = SphinxBasePINVOKE.Config_GetFloat(swigCPtr, key);

            return(ret);
        }
コード例 #30
0
        public bool MoveNext()
        {
            bool ret = SphinxBasePINVOKE.NGramModelSetIterator_MoveNext(swigCPtr);

            return(ret);
        }