Compartilhar via


VoiceInfo Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.VoiceInfo

Implements

java.lang.AutoCloseable

public class VoiceInfo
implements java.lang.AutoCloseable

Contains detailed information about the synthesis voice information. Note: close() must be called in order to release underlying resources held by the object. Updated in version 1.17.0

Constructor Summary

Modifier Constructor Description
protected VoiceInfo(IntRef result)

PROTECTED

Method Summary

Modifier and Type Method and Description
void close()

Explicitly frees any external resource attached to the object

SynthesisVoiceGender getGender()

Gets the voice gender.

SafeHandle getImpl()

Returns the vice info implementation.

java.lang.String getLocalName()

Gets the local name of the voice.

java.lang.String getLocale()

Gets the locale of the voice.

java.lang.String getName()

Gets the voice name.

PropertyCollection getProperties()

The set of properties exposed in the result.

java.lang.String getShortName()

Gets the short name of the voice.

java.util.List<java.lang.String> getStyleList()

Gets the style list.

java.lang.String getVoicePath()

Gets the voice path, only valid for offline voices.

SynthesisVoiceType getVoiceType()

Gets the voice type.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

VoiceInfo

protected VoiceInfo(IntRef result)

PROTECTED

Parameters:

result - PROTECTED VoiceInfo

Method Details

close

public void close()

Explicitly frees any external resource attached to the object

getGender

public SynthesisVoiceGender getGender()

Gets the voice gender. Added in version 1.17.0

Returns:

The voice gender.

getImpl

public SafeHandle getImpl()

Returns the vice info implementation.

Returns:

The implementation handle.

getLocalName

public String getLocalName()

Gets the local name of the voice.

Returns:

The local name.

getLocale

public String getLocale()

Gets the locale of the voice.

Returns:

The locale.

getName

public String getName()

Gets the voice name.

Returns:

The voice name.

getProperties

public PropertyCollection getProperties()

The set of properties exposed in the result.

Returns:

The set of properties exposed in the result.

getShortName

public String getShortName()

Gets the short name of the voice.

Returns:

The short name.

getStyleList

public List getStyleList()

Gets the style list.

Returns:

The style list.

getVoicePath

public String getVoicePath()

Gets the voice path, only valid for offline voices.

Returns:

The voice path.

getVoiceType

public SynthesisVoiceType getVoiceType()

Gets the voice type.

Returns:

The voice type.

Applies to