Class Language

ru.yandex.speechkit

public  class  Language 

Available recognition languages.

Constructors

Language(@NonNull final String code)

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

Methods

booleanequals(Object otherObject)
StringgetValue()

Returns a string representation of the language.

inthashCode()
StringtoString()

Fields

final LanguageENGLISH

An object of the Language class that corresponds to English.

final LanguageRUSSIAN

An object of the Language class that corresponds to Russian.

final LanguageTURKISH

An object of the Language class that corresponds to Turkish.

final LanguageUKRAINIAN

An object of the Language class that corresponds to Ukrainian.

Constructor Detail

Language

public Language (@NonNull final String code)

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

Parameters:
code

String representation of the language.

Method Detail

equals

public boolean equals (Object otherObject)

getValue

public String getValue ()

Returns a string representation of the language.

Returns:

String representation of the language.

hashCode

public int hashCode ()

toString

public String toString ()

Field Detail

ENGLISH

public static ENGLISH = new Language("en-EN")

An object of the Language class that corresponds to English.

RUSSIAN

public static RUSSIAN = new Language("ru-RU")

An object of the Language class that corresponds to Russian.

TURKISH

public static TURKISH = new Language("tr-TR")

An object of the Language class that corresponds to Turkish.

UKRAINIAN

public static UKRAINIAN = new Language("uk-UA")

An object of the Language class that corresponds to Ukrainian.