Class Biometry

ru.yandex.speechkit

java.lang.Object ⇽ Biometry

public  class  Biometry  implements android.os.Parcelable

All Implemented Interfaces:
android.os.Parcelable

Estimated biometrics of the user (age, gender, age group, and other characteristics), which are returned in the Recognition class object during speech recognition.

Nested Classes

Constructors

Biometry(final float age, final float maleScore, final float femaleScore, final float childScore, final float adultScore, @NonNull final Group group, @NonNull final Emotion emotion, @NonNull LanguageScore[] languageScores)

Creates an object of the Biometry class.

Biometry(@NonNull final android.os.Parcel parcel)

Creates an object of the Biometry class.

Methods

intdescribeContents()
floatgetAdultScore()

Returns an estimate of whether the user is an adult.

floatgetAge()

Returns the estimated age of the user.

floatgetChildScore()

Returns an estimate of whether the user is a child.

EmotiongetEmotion()

Returns an object of the Emotion class.

floatgetFemaleScore()

Returns an estimate of whether the user is female.

GroupgetGroup()

Returns an object of the Group class.

LanguageScore[]getLanguageScores()

Returns an array of LanguageScore class objects.

floatgetMaleScore()

Returns an estimate of whether the user is male.

StringtoString()
voidwriteToParcel(android.os.Parcel parcel, int i)

Fields

final Parcelable.CreatorCREATOR

Constructor Detail

Biometry

public Biometry (final float age, final float maleScore, final float femaleScore, final float childScore, final float adultScore, @NonNull final Group group, @NonNull final Emotion emotion, @NonNull LanguageScore[] languageScores)

Creates an object of the Biometry class.

Parameters:
age

Estimated age of the user.

maleScore

Estimates whether the user is male.

femaleScore

Estimates whether the user is female.

childScore

Estimates whether the user is a child.

adultScore

Estimates whether the user is an adult.

group

An object of the Group class that contains gender and age group estimates.

emotion

An object of the Emotion class that contains the estimates of whether the user is experiencing one of the following emotions: happiness, annoyance, anger, calmness, or sadness.

languageScores

An array of objects, each element of which LanguageScore is a language and a score of what the user said in that language.

Biometry

public Biometry (@NonNull final android.os.Parcel parcel)

Creates an object of the Biometry class.

Parameters:
parcel

A service object for state serialization.

Method Detail

describeContents

public int describeContents ()

getAdultScore

public float getAdultScore ()

Returns an estimate of whether the user is an adult.

Returns:

Estimates whether the user is an adult.

getAge

public float getAge ()

Returns the estimated age of the user.

Returns:

Estimated age of the user.

getChildScore

public float getChildScore ()

Returns an estimate of whether the user is a child.

Returns:

Estimates whether the user is a child.

getEmotion

public Emotion getEmotion ()

Returns an object of the Emotion class.

Returns:

An object that contains the estimates of whether the user is experiencing one of the following emotions: happiness, annoyance, anger, calmness, or sadness.

getFemaleScore

public float getFemaleScore ()

Returns an estimate of whether the user is female.

Returns:

Estimates whether the user is female.

getGroup

public Group getGroup ()

Returns an object of the Group class.

Returns:

An object that contains gender and age group estimates.

getLanguageScores

public LanguageScore[] getLanguageScores ()

Returns an array of LanguageScore class objects.

Returns:

An array of objects, each element of which LanguageScore is a language and a score of what the user said in that language.

getMaleScore

public float getMaleScore ()

Returns an estimate of whether the user is male.

Returns:

Estimates whether the user is male.

toString

public String toString ()

writeToParcel

public void writeToParcel (android.os.Parcel parcel, int i)

Field Detail

CREATOR

public static CREATOR = new Parcelable.Creator() { public Biometry createFromParcel(android.os.Parcel parcel) { return new Biometry(parcel); } public Biometry[] newArray(int size) { return new Biometry[size]; } }