VoiceInfo Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. VoiceInfo
- com.
Implements
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 |
Synthesis |
getGender()
Gets the voice gender. |
Safe |
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. |
Property |
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. |
Synthesis |
getVoiceType()
Gets the voice type. |
Methods inherited from java.lang.Object
Constructor Details
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:
getImpl
public SafeHandle getImpl()
Returns the vice info implementation.
Returns:
getLocalName
public String getLocalName()
Gets the local name of the voice.
Returns:
getLocale
public String getLocale()
Gets the locale of the voice.
Returns:
getName
public String getName()
Gets the voice name.
Returns:
getProperties
public PropertyCollection getProperties()
The set of properties exposed in the result.
Returns:
getShortName
public String getShortName()
Gets the short name of the voice.
Returns:
getStyleList
public List
Gets the style list.
Returns:
getVoicePath
public String getVoicePath()
Gets the voice path, only valid for offline voices.
Returns:
getVoiceType
public SynthesisVoiceType getVoiceType()
Gets the voice type.
Returns:
Applies to
Azure SDK for Java