Class Quality

ru.yandex.speechkit

public  class  Quality 

Quality of synthesized speech.

The quality affects the size of the data buffer received.

Constructors

Quality(@NonNull final String quality)

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

Methods

booleanequals(Object otherObject)
StringgetValue()

Returns a string representation of sound quality.

inthashCode()
StringtoString()

Fields

final QualityHIGH

An object of the Quality class that corresponds to the average sound quality.

final QualityLOW

An object of the Quality class that corresponds to the poor quality of the sound.

final QualityULTRA_HIGH

An object of the Quality class that corresponds to the high quality of the sound.

Constructor Detail

Quality

public Quality (@NonNull final String quality)

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

Parameters:
quality

String representation of sound quality.

Method Detail

equals

public boolean equals (Object otherObject)

getValue

public String getValue ()

Returns a string representation of sound quality.

Returns:

String representation of sound quality.

hashCode

public int hashCode ()

toString

public String toString ()

Field Detail

HIGH

public static HIGH = new Quality("High")

An object of the Quality class that corresponds to the average sound quality.

By default, 16 kHz is used.

LOW

public static LOW = new Quality("Low")

An object of the Quality class that corresponds to the poor quality of the sound.

By default, 8 kHz is used.

ULTRA_HIGH

public static ULTRA_HIGH = new Quality("UltraHigh")

An object of the Quality class that corresponds to the high quality of the sound.

By default, 48 kHz is used.