Participant Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. transcription. Participant
- com.
Implements
public final class Participant
implements java.lang.AutoCloseable
Represents a participant in a conversation transcribing session. Added in version 1.5.0
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void |
close()
Explicitly frees any external resource attached to the object |
| static Participant |
from(String userId)
Create a Participant using user id. |
| static Participant |
from(String userId, String preferredLanguage)
Create a Participant using user id and her/his preferred language. |
| static Participant |
from(String userId, String preferredLanguage, String voiceSignature)
Create a Participant using user id, her/his preferred language and her/his voice signature. |
| java.lang.String |
getId()
The unique identifier for the participant. |
|
Safe |
getImpl()
Returns the participant implementation. |
|
Property |
getProperties()
Gets the properties for participant. |
| void |
setPreferredLanguage(String preferredLanguage)
Sets the preferred languages for participant. |
| void |
setVoiceSignature(String voiceSignature)
Sets the voice signature for participant. |
Methods inherited from java.lang.Object
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
from
public static Participant from(String userId)
Create a Participant using user id.
Parameters:
Returns:
from
public static Participant from(String userId, String preferredLanguage)
Create a Participant using user id and her/his preferred language.
Parameters:
Returns:
from
public static Participant from(String userId, String preferredLanguage, String voiceSignature)
Create a Participant using user id, her/his preferred language and her/his voice signature. If voice signature is empty then user will not be identified.
Parameters:
Returns:
getId
public String getId()
The unique identifier for the participant.
Returns:
getImpl
public SafeHandle getImpl()
Returns the participant implementation.
Returns:
getProperties
public PropertyCollection getProperties()
Gets the properties for participant.
Returns:
setPreferredLanguage
public void setPreferredLanguage(String preferredLanguage)
Sets the preferred languages for participant.
Parameters:
setVoiceSignature
public void setVoiceSignature(String voiceSignature)
Sets the voice signature for participant. If voice signature is empty then user will not be identified.
Parameters: