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 | Description |
---|---|
Speaker |
Creates a new instance of a speaker recognizer. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Dispose of associated resources. |
Safe |
get Internal method to get the underlying native handle. |
Property |
get The collection of properties and their values defined for Speaker |
java.util.concurrent.Future<Speaker |
recognize Starts a speaker recognition session to identify the speaker in the identification model. |
java.util.concurrent.Future<Speaker |
recognize Starts a speaker recognition session to verify the speaker in the verification model. |
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:
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:
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: