KeyphraseMetadatapublic class KeyphraseMetadata extends Object A Voice Keyphrase metadata read from the enrollment application. |
Fields Summary |
---|
public final int | id | public final String | keyphrase | public final android.util.ArraySet | supportedLocales | public final int | recognitionModeFlags |
Constructors Summary |
---|
public KeyphraseMetadata(int id, String keyphrase, android.util.ArraySet supportedLocales, int recognitionModeFlags)
this.id = id;
this.keyphrase = keyphrase;
this.supportedLocales = supportedLocales;
this.recognitionModeFlags = recognitionModeFlags;
|
Methods Summary |
---|
public boolean | supportsLocale(java.util.Locale locale)
return supportedLocales.isEmpty() || supportedLocales.contains(locale);
| public boolean | supportsPhrase(java.lang.String phrase)
return keyphrase.isEmpty() || keyphrase.equalsIgnoreCase(phrase);
| public java.lang.String | toString()
return "id=" + id + ", keyphrase=" + keyphrase + ", supported-locales=" + supportedLocales
+ ", recognition-modes=" + recognitionModeFlags;
|
|