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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기