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

booleanequals(Object otherObject)
StringgetValue()

Returns a string value that matches the selected voice.

inthashCode()
StringtoString()

Fields

final VoiceALYSS

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

final VoiceERMIL

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

final VoiceJANE

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

final VoiceOKSANA

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

final VoiceOMAZH

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

final VoiceZAHAR

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.