public class VoiceTemplateConverter extends VoiceSdkNativePeer
VoiceTemplate
from one configuration to another.
This class serves as gateway to native Voice SDK implementation and allocates resources on native heap.
To release the allocated memory, AutoCloseable.close()
method should be invoked when the instance is no longer needed.
Any method that delegates to native call may throw VoiceSdkEngineException
VoiceTemplate
nativeId
Constructor and Description |
---|
VoiceTemplateConverter(java.lang.String initDataPath)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
VoiceTemplate |
convertVoiceTemplate(VoiceTemplate voiceTemplate)
Converts voice template from one configuration to another.
|
java.lang.String |
getInputInitDataId()
Returns init data ID that voice template to be converted should have
|
java.lang.String |
getOutputInitDataId()
Returns init data ID that converted voice template will have
|
protected static long |
init(java.lang.String initDataPath) |
protected void |
release()
This method should release resources on native layer (indirectly using nativeId)
|
close, equals, finalize, hashCode
public VoiceTemplateConverter(java.lang.String initDataPath)
initDataPath
- full path to the directory with SDK dataVoiceSdkEngineException
- wraps native exceptionspublic VoiceTemplate convertVoiceTemplate(VoiceTemplate voiceTemplate)
voiceTemplate
- VoiceTemplate to be convertedVoiceTemplate
VoiceSdkEngineException
- wraps native exceptionspublic java.lang.String getInputInitDataId()
public java.lang.String getOutputInitDataId()
protected static long init(java.lang.String initDataPath)
protected void release()
VoiceSdkNativePeer
release
in class VoiceSdkNativePeer