Class Emotion

ru.yandex.speechkit

public  class  Emotion 

Possible emotions of synthesized voice.

Constructors

Emotion(@NonNull final String emotion)

Creates an object of the class with the passed string representation.

Methods

booleanequals(Object otherObject)
StringgetValue()

Returns a string representation of the emotion.

inthashCode()
StringtoString()

Fields

final EmotionEVIL

An object of the Emotion class with a negative emotion.

final EmotionGOOD

An object of the Emotion with a positive emotion.

final EmotionNEUTRAL

An object of the Emotion class with a neutral emotion.

Constructor Detail

Emotion

public Emotion (@NonNull final String emotion)

Creates an object of the class with the passed string representation.

Parameters:
emotion

String representation of the emotion.

Method Detail

equals

public boolean equals (Object otherObject)

getValue

public String getValue ()

Returns a string representation of the emotion.

Returns:

String representation of the emotion.

hashCode

public int hashCode ()

toString

public String toString ()

Field Detail

EVIL

public static EVIL = new Emotion("evil")

An object of the Emotion class with a negative emotion.

GOOD

public static GOOD = new Emotion("good")

An object of the Emotion with a positive emotion.

NEUTRAL

public static NEUTRAL = new Emotion("neutral")

An object of the Emotion class with a neutral emotion.