Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhraseRecognizer

A common base class for both keyword recognizer and grammar recognizer.
Read time 1 minuteLast updated 6 days ago

Definition

public abstract class PhraseRecognizer : IDisposable

Remarks

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

Property

Description

IsRunningTells whether the phrase recognizer is listening for phrases.

Methods

Method

Description

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

Events

Member

Description

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

Delegates

Delegate

Description

PhraseRecognizer.PhraseRecognizedDelegateDelegate for OnPhraseRecognized event.