Class Quality
ru.yandex.speechkit
public class Quality
Quality of synthesized speech.
The quality affects the size of the data buffer received.
Constructors
Methods
Fields
final Quality | HIGH | An object of the Quality class that corresponds to the average sound quality. |
final Quality | LOW | An object of the Quality class that corresponds to the poor quality of the sound. |
final Quality | ULTRA_HIGH | An object of the Quality class that corresponds to the high quality of the sound. |
final Quality | HIGH | An object of the Quality class that corresponds to the average sound quality. |
final Quality | LOW | An object of the Quality class that corresponds to the poor quality of the sound. |
final Quality | ULTRA_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.
quality | String representation of sound quality. |
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.