C# Class UnityEngine.Windows.Speech.PhraseRecognizer

A common base class for both keyword recognizer and grammar recognizer.

Inheritance: IDisposable
Exibir arquivo Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Protected Properties

Property Type Description
m_Recognizer System.IntPtr

Public Methods

Method Description
Dispose ( ) : void

Disposes the resources used by phrase recognizer.

Start ( ) : void

Makes the phrase recognizer start listening to phrases.

Stop ( ) : void

Stops the phrase recognizer from listening to phrases.

Protected Methods

Method Description
CreateFromGrammarFile ( string grammarFilePath, ConfidenceLevel minimumConfidence ) : IntPtr
CreateFromKeywords ( string keywords, ConfidenceLevel minimumConfidence ) : IntPtr

Private Methods

Method Description
Destroy ( IntPtr recognizer ) : void
DestroyThreaded ( IntPtr recognizer ) : void
INTERNAL_CALL_CreateFromGrammarFile ( PhraseRecognizer self, string grammarFilePath, ConfidenceLevel minimumConfidence, IntPtr &value ) : void
INTERNAL_CALL_CreateFromKeywords ( PhraseRecognizer self, string keywords, ConfidenceLevel minimumConfidence, IntPtr &value ) : void
InvokePhraseRecognizedEvent ( string text, ConfidenceLevel confidence, SemanticMeaning semanticMeanings, long phraseStartFileTime, long phraseDurationTicks ) : void
IsRunning_Internal ( IntPtr recognizer ) : bool
MarshalSemanticMeaning ( IntPtr keys, IntPtr values, IntPtr valueSizes, int valueCount ) : UnityEngine.Windows.Speech.SemanticMeaning[]
PhraseRecognizer ( ) : System
Start_Internal ( IntPtr recognizer ) : void
Stop_Internal ( IntPtr recognizer ) : void

Method Details

CreateFromGrammarFile() protected method

protected CreateFromGrammarFile ( string grammarFilePath, ConfidenceLevel minimumConfidence ) : IntPtr
grammarFilePath string
minimumConfidence ConfidenceLevel
return System.IntPtr

CreateFromKeywords() protected method

protected CreateFromKeywords ( string keywords, ConfidenceLevel minimumConfidence ) : IntPtr
keywords string
minimumConfidence ConfidenceLevel
return System.IntPtr

Dispose() public method

Disposes the resources used by phrase recognizer.

public Dispose ( ) : void
return void

Start() public method

Makes the phrase recognizer start listening to phrases.

public Start ( ) : void
return void

Stop() public method

Stops the phrase recognizer from listening to phrases.

public Stop ( ) : void
return void

Property Details

m_Recognizer protected_oe property

protected IntPtr,System m_Recognizer
return System.IntPtr