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 |
getAvatar()
Gets the colour of the user's avatar as an HTML hex string (e. |
java.lang.String |
getDisplayName()
The participant's display name. |
java.lang.String |
getId()
The unique identifier for the participant. |
Safe |
getImpl()
Returns the participant implementation. |
Property |
getProperties()
Gets the properties for participant. |
boolean |
isHost()
Gets whether or not this participant is the host. |
boolean |
isMuted()
Gets whether or not this participant is muted. |
boolean |
isUsingTts()
Gets whether or not the participant is using Text To Speech (TTS). |
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:
getAvatar
public String getAvatar()
Gets the colour of the user's avatar as an HTML hex string (e.g. FF0000 for red).
Returns:
getDisplayName
public String getDisplayName()
The participant's display name. Please note that each participant within the same conversation must have a different display name. Duplicate names within the same conversation are not allowed. You can use the Id property as another way to refer to each participant.
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:
isHost
public boolean isHost()
Gets whether or not this participant is the host.
Returns:
isMuted
public boolean isMuted()
Gets whether or not this participant is muted.
Returns:
isUsingTts
public boolean isUsingTts()
Gets whether or not the participant is using Text To Speech (TTS).
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:
Applies to
Azure SDK for Java