SpeakerRecognizer Class
Definition
- java.lang.Object
- AutoCloseable
- com.microsoft.cognitiveservices.speech.speaker.SpeakerRecognizer
Performs speaker recognition on the speech input. Note: close() must be called in order to release underlying resources held by the object.
public class SpeakerRecognizer
Constructors
| 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. |
Methods
| close() |
Dispose of associated resources. Note: close() must be called in order to release underlying resources held by the object. |
| getProperties() |
The collection of properties and their values defined for SpeakerRecognizer. |
| recognizeOnceAsync(final SpeakerIdentificationModel model) |
Starts a speaker recognition session to identify the speaker in the identification model. |
| recognizeOnceAsync(final SpeakerVerificationModel model) |
Starts a speaker recognition session to verify the speaker in the verification model. |