Version: 2018.4
LanguageEnglish
  • C#

PhraseRecognizer

class in UnityEngine.Windows.Speech

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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

Phrase recognizer is the smallest speech recognition unit that can be individually started and stopped. Typically, you should create all your phrase recognizers at the start of the Scene, and the start and stop them on demand as needed.

Properties

IsRunningTells whether the phrase recognizer is listening for phrases.

Public Methods

DisposeDisposes the resources used by phrase recognizer.
StartMakes the phrase recognizer start listening to phrases.
StopStops the phrase recognizer from listening to phrases.

Events

OnPhraseRecognizedEvent that gets fired when the phrase recognizer recognizes a phrase.

Delegates

PhraseRecognizedDelegateDelegate for OnPhraseRecognized event.