Class VoiceInfo
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.VoiceInfo
-
- All Implemented Interfaces:
AutoCloseable
public class VoiceInfo extends Object implements 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectSynthesisVoiceGendergetGender()Gets the voice gender.SafeHandlegetImpl()Returns the vice info implementation.StringgetLocale()Gets the locale of the voice.StringgetLocalName()Gets the local name of the voice.StringgetName()Gets the voice name.PropertyCollectiongetProperties()The set of properties exposed in the result.StringgetShortName()Gets the short name of the voice.List<String>getStyleList()Gets the style list.StringgetVoicePath()Gets the voice path, only valid for offline voices.SynthesisVoiceTypegetVoiceType()Gets the voice type.
-
-
-
Method Detail
-
getName
public String getName()
Gets the voice name.- Returns:
- The voice name.
-
getLocale
public String getLocale()
Gets the locale of the voice.- Returns:
- The locale.
-
getShortName
public String getShortName()
Gets the short name of the voice.- Returns:
- The short name.
-
getLocalName
public String getLocalName()
Gets the local name of the voice.- Returns:
- The local name.
-
getGender
public SynthesisVoiceGender getGender()
Gets the voice gender. Added in version 1.17.0- Returns:
- The voice gender.
-
getVoiceType
public SynthesisVoiceType getVoiceType()
Gets the voice type.- Returns:
- The voice type.
-
getVoicePath
public String getVoicePath()
Gets the voice path, only valid for offline voices.- Returns:
- The voice path.
-
getProperties
public PropertyCollection getProperties()
The set of properties exposed in the result.- Returns:
- The set of properties exposed in the result.
-
close
public void close()
Explicitly frees any external resource attached to the object- Specified by:
closein interfaceAutoCloseable
-
getImpl
public SafeHandle getImpl()
Returns the vice info implementation.- Returns:
- The implementation handle.
-
-