SpeakerRecognizer Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. speaker. SpeakerRecognizer
- com.
Implements
public final class SpeakerRecognizer
implements java.lang.AutoCloseable
Performs speaker recognition on the speech input. Note: close() must be called in order to release underlying resources held by the object.
Constructor Summary
Constructor | Description |
---|---|
SpeakerRecognizer(SpeechConfig speechConfig, AudioConfig audioConfig) |
Creates a new instance of a speaker recognizer. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Dispose of associated resources. |
Safe |
getImpl()
Internal method to get the underlying native handle. |
Property |
getProperties()
The collection of properties and their values defined for Speaker |
java.util.concurrent.Future<Speaker |
recognizeOnceAsync(SpeakerIdentificationModel model)
Starts a speaker recognition session to identify the speaker in the identification model. |
java.util.concurrent.Future<Speaker |
recognizeOnceAsync(SpeakerVerificationModel model)
Starts a speaker recognition session to verify the speaker in the verification model. |
Methods inherited from java.lang.Object
Constructor Details
SpeakerRecognizer
public SpeakerRecognizer(SpeechConfig speechConfig, AudioConfig audioConfig)
Creates a new instance of a speaker recognizer. If no audio config is provided as input parameter, it will be equivalent to calling with a config constructed with AudioConfig::FromDefaultMicrophoneInput.
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.
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 SpeakerRecognizer.
Returns:
recognizeOnceAsync
public Future
Starts a speaker recognition session to identify the speaker in the identification model.
Parameters:
Returns:
recognizeOnceAsync
public Future
Starts a speaker recognition session to verify the speaker in the verification model.
Parameters:
Returns:
Applies to
Azure SDK for Java