Class ConversationTranscriptionResult
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.RecognitionResult
-
- com.microsoft.cognitiveservices.speech.SpeechRecognitionResult
-
- com.microsoft.cognitiveservices.speech.transcription.ConversationTranscriptionResult
-
- All Implemented Interfaces:
AutoCloseable
public class ConversationTranscriptionResult extends SpeechRecognitionResult
Class that defines conversation transcription result.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConversationTranscriptionResult(long result)Internal constructor for creating a ConversationTranscriptionResult from a native handle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectStringgetSpeakerId()A String that represents the speaker id in the conversation.StringtoString()Returns a String that represents the conversation transcription result.-
Methods inherited from class com.microsoft.cognitiveservices.speech.RecognitionResult
getDuration, getImpl, getOffset, getProperties, getReason, getResultId, getText
-
-
-
-
Method Detail
-
close
public void close()
Explicitly frees any external resource attached to the object- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classSpeechRecognitionResult
-
getSpeakerId
public String getSpeakerId()
A String that represents the speaker id in the conversation.- Returns:
- the speaker ID string.
-
toString
public String toString()
Returns a String that represents the conversation transcription result.- Overrides:
toStringin classSpeechRecognitionResult- Returns:
- A String that represents the conversation transcription result.
-
-