TranscriptionDiarizationOptions Class
- java.
lang. Object - com.
azure. ai. speech. transcription. models. TranscriptionDiarizationOptions
- com.
Implements
public final class TranscriptionDiarizationOptions
implements JsonSerializable<TranscriptionDiarizationOptions>
The Speaker Diarization settings. Diarization settings must be specified to enable speaker diarization.
Constructor Summary
| Constructor | Description |
|---|---|
| TranscriptionDiarizationOptions() |
Creates an instance of Transcription |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Transcription |
fromJson(JsonReader jsonReader)
Reads an instance of Transcription |
| Integer |
getMaxSpeakers()
Get the max |
| Boolean |
isEnabled()
Get the enabled property: Enable speaker diarization. |
|
Transcription |
setMaxSpeakers(Integer maxSpeakers)
Set the max |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
TranscriptionDiarizationOptions
public TranscriptionDiarizationOptions()
Creates an instance of TranscriptionDiarizationOptions class.
Method Details
fromJson
public static TranscriptionDiarizationOptions fromJson(JsonReader jsonReader)
Reads an instance of TranscriptionDiarizationOptions from the JsonReader.
Parameters:
Returns:
Throws:
getMaxSpeakers
public Integer getMaxSpeakers()
Get the maxSpeakers property: Gets or sets a hint for the maximum number of speakers for diarization. Must be greater than 1 and less than 36.
Returns:
isEnabled
public Boolean isEnabled()
Get the enabled property: Enable speaker diarization. This is automatically set to true when maxSpeakers is specified.
Returns:
setMaxSpeakers
public TranscriptionDiarizationOptions setMaxSpeakers(Integer maxSpeakers)
Set the maxSpeakers property: Gets or sets a hint for the maximum number of speakers for diarization. Must be greater than 1 and less than 36.
Parameters:
Returns: