DictationRecognizer listens to speech input and attempts to determine what phrase was uttered.

Inheritance: IDisposable
Exemplo n.º 1
0
 public void Stop()
 {
     if (!(this.m_Recognizer == IntPtr.Zero))
     {
         DictationRecognizer.Stop(this.m_Recognizer);
     }
 }
Exemplo n.º 2
0
        private IntPtr Create(ConfidenceLevel minimumConfidence, DictationTopicConstraint topicConstraint)
        {
            IntPtr result;

            DictationRecognizer.INTERNAL_CALL_Create(this, minimumConfidence, topicConstraint, out result);
            return(result);
        }
 public void Stop()
 {
     if (this.m_Recognizer == IntPtr.Zero)
     {
         return;
     }
     DictationRecognizer.Stop(this.m_Recognizer);
 }
Exemplo n.º 4
0
 public void Dispose()
 {
     if (this.m_Recognizer != IntPtr.Zero)
     {
         DictationRecognizer.Destroy(this.m_Recognizer);
         this.m_Recognizer = IntPtr.Zero;
     }
     GC.SuppressFinalize(this);
 }
        public void Stop()
        {
            bool flag = this.m_Recognizer == IntPtr.Zero;

            if (!flag)
            {
                DictationRecognizer.Stop(this.m_Recognizer);
            }
        }
Exemplo n.º 6
0
 static public int get_Status(IntPtr l)
 {
     try {
         UnityEngine.Windows.Speech.DictationRecognizer self = (UnityEngine.Windows.Speech.DictationRecognizer)checkSelf(l);
         pushValue(l, true);
         pushEnum(l, (int)self.Status);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 7
0
 static public int Dispose(IntPtr l)
 {
     try {
         UnityEngine.Windows.Speech.DictationRecognizer self = (UnityEngine.Windows.Speech.DictationRecognizer)checkSelf(l);
         self.Dispose();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 8
0
 static public int get_InitialSilenceTimeoutSeconds(IntPtr l)
 {
     try {
         UnityEngine.Windows.Speech.DictationRecognizer self = (UnityEngine.Windows.Speech.DictationRecognizer)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.InitialSilenceTimeoutSeconds);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 9
0
 static public int set_AutoSilenceTimeoutSeconds(IntPtr l)
 {
     try {
         UnityEngine.Windows.Speech.DictationRecognizer self = (UnityEngine.Windows.Speech.DictationRecognizer)checkSelf(l);
         float v;
         checkType(l, 2, out v);
         self.AutoSilenceTimeoutSeconds = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 10
0
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.Windows.Speech.DictationRecognizer o;
         if (argc == 1)
         {
             o = new UnityEngine.Windows.Speech.DictationRecognizer();
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Windows.Speech.ConfidenceLevel)))
         {
             UnityEngine.Windows.Speech.ConfidenceLevel a1;
             checkEnum(l, 2, out a1);
             o = new UnityEngine.Windows.Speech.DictationRecognizer(a1);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Windows.Speech.DictationTopicConstraint)))
         {
             UnityEngine.Windows.Speech.DictationTopicConstraint a1;
             checkEnum(l, 2, out a1);
             o = new UnityEngine.Windows.Speech.DictationRecognizer(a1);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 3)
         {
             UnityEngine.Windows.Speech.ConfidenceLevel a1;
             checkEnum(l, 2, out a1);
             UnityEngine.Windows.Speech.DictationTopicConstraint a2;
             checkEnum(l, 3, out a2);
             o = new UnityEngine.Windows.Speech.DictationRecognizer(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 protected override void Finalize()
 {
     try
     {
         bool flag = this.m_Recognizer != IntPtr.Zero;
         if (flag)
         {
             DictationRecognizer.DestroyThreaded(this.m_Recognizer);
             this.m_Recognizer = IntPtr.Zero;
             GC.SuppressFinalize(this);
         }
     }
     finally
     {
         base.Finalize();
     }
 }
 private static extern void INTERNAL_CALL_Create(DictationRecognizer self, ConfidenceLevel minimumConfidence, DictationTopicConstraint topicConstraint, out IntPtr value);
Exemplo n.º 13
0
 private static extern void INTERNAL_CALL_Create(DictationRecognizer self, ConfidenceLevel minimumConfidence, DictationTopicConstraint topicConstraint, out IntPtr value);
 public DictationRecognizer(ConfidenceLevel minimumConfidence, DictationTopicConstraint topic)
 {
     this.m_Recognizer = DictationRecognizer.Create(this, minimumConfidence, topic);
 }