Class SoundFormat

ru.yandex.speechkit

public  class  SoundFormat 

Formats of synthesized speech.

The current version of the library supports uncompressed PCM and Opus.

Constructors

SoundFormat(@NonNull String name)

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

Methods

booleanequals(Object otherObject)
StringgetValue()

Returns a string representation of the format.

inthashCode()
StringtoString()

Fields

final SoundFormatOPUS

An object of the SoundFormat class that corresponds to the OPUS format.

final SoundFormatPCM

An object of the SoundFormat class that corresponds to the PCM format.

Constructor Detail

SoundFormat

public SoundFormat (@NonNull String name)

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

Parameters:
name

String representation of the format.

Method Detail

equals

public boolean equals (Object otherObject)

getValue

public String getValue ()

Returns a string representation of the format.

Returns:

String representation of the format.

hashCode

public int hashCode ()

toString

public String toString ()

Field Detail

OPUS

public static OPUS = new SoundFormat("opus")

An object of the SoundFormat class that corresponds to the OPUS format.

PCM

public static PCM = new SoundFormat("pcm")

An object of the SoundFormat class that corresponds to the PCM format.