Class Voice

ru.yandex.speechkit

public  class  Voice 

The class specifies voice settings for synthesized speech.

Constructors

Voice(@NonNull final String name)

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

Methods

boolean equals(Object otherObject)
String getValue()

Returns a string value that matches the selected voice.

int hashCode()
String toString()

Fields

final Voice ALYSS

An object of the Voice class with the female voice Alyss.

final Voice ERMIL

An object of the Voice class with the male voice Ermil.

final Voice JANE

An object of the Voice class with the female voice Jane.

final Voice OKSANA

An object of the Voice class with the female voice Oksana.

final Voice OMAZH

An object of the Voice class with the female voice Omazh.

final Voice ZAHAR

An object of the Voice class with the male voice Zahar.

Constructor Detail

Voice

public Voice (@NonNull final String name)

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

Parameters:
name

String representation of the voice.

Method Detail

equals

public boolean equals (Object otherObject)

getValue

public String getValue ()

Returns a string value that matches the selected voice.

Returns:

A string value that matches the selected voice.

hashCode

public int hashCode ()

toString

public String toString ()

Field Detail

ALYSS

public static ALYSS = new Voice("alyss")

An object of the Voice class with the female voice Alyss.

ERMIL

public static ERMIL = new Voice("ermil")

An object of the Voice class with the male voice Ermil.

JANE

public static JANE = new Voice("jane")

An object of the Voice class with the female voice Jane.

OKSANA

public static OKSANA = new Voice("oksana")

An object of the Voice class with the female voice Oksana.

OMAZH

public static OMAZH = new Voice("omazh")

An object of the Voice class with the female voice Omazh.

ZAHAR

public static ZAHAR = new Voice("zahar")

An object of the Voice class with the male voice Zahar.