VoiceProfileClient Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. speaker. VoiceProfileClient
- com.
Implements
public final class VoiceProfileClient
implements java.lang.AutoCloseable
A voice profile client performs voice profile management for speaker recognition. Note: close() must be called in order to release underlying resources held by the object.
Constructor Summary
Constructor | Description |
---|---|
VoiceProfileClient(SpeechConfig speechConfig) |
Creates a new instance of a voice profile client. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Dispose of associated resources. |
java.util.concurrent.Future<Voice |
createProfileAsync(VoiceProfileType voiceProfileType, String locale)
Creates a voice profile as an asynchronous operation. |
java.util.concurrent.Future<Voice |
deleteProfileAsync(VoiceProfile voiceProfile)
Delete a voice profile asynchronously. |
java.util.concurrent.Future<Voice |
enrollProfileAsync(VoiceProfile voiceProfile, AudioConfig audioConfig)
Enroll a voice profile asynchronously. |
java.util.concurrent.Future<Voice |
getActivationPhrasesAsync(VoiceProfileType voiceProfileType, String locale)
Get valid activation phrases for enrollment. |
java.util.concurrent.Future<java.util.List<Voice |
getAllProfilesAsync(VoiceProfileType voiceProfileType)
Get all voice profiles as an asynchronous operation. |
Safe |
getImpl()
Internal method to get the underlying native handle. |
Property |
getProperties()
The collection of properties and their values defined for Voice |
java.util.concurrent.Future<Voice |
resetProfileAsync(VoiceProfile voiceProfile)
Reset a voice profile asynchronously. |
java.util.concurrent.Future<Voice |
retrieveEnrollmentResultAsync(VoiceProfile voiceProfile)
Retrieve an enrollment result given the Voice Profile. |
Methods inherited from java.lang.Object
Constructor Details
VoiceProfileClient
public VoiceProfileClient(SpeechConfig speechConfig)
Creates a new instance of a voice profile client.
Parameters:
Method Details
close
public void close()
Dispose of associated resources. Note: close() must be called in order to release underlying resources held by the object.
createProfileAsync
public Future
Creates a voice profile as an asynchronous operation.
Parameters:
Returns:
deleteProfileAsync
public Future
Delete a voice profile asynchronously.
Parameters:
Returns:
enrollProfileAsync
public Future
Enroll a voice profile asynchronously.
Parameters:
Returns:
getActivationPhrasesAsync
public Future
Get valid activation phrases for enrollment.
Parameters:
Returns:
getAllProfilesAsync
public Future> getAllProfilesAsync(VoiceProfileType voiceProfileType)
Get all voice profiles as an asynchronous operation.
Parameters:
Returns:
getImpl
public SafeHandle getImpl()
Internal method to get the underlying native handle.
Returns:
getProperties
public PropertyCollection getProperties()
The collection of properties and their values defined for VoiceProfileClient.
Returns:
resetProfileAsync
public Future
Reset a voice profile asynchronously.
Parameters:
Returns:
retrieveEnrollmentResultAsync
public Future
Retrieve an enrollment result given the Voice Profile.
Parameters:
Returns: