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(boolean enabled) |
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: whether speaker diarization is enabled for this transcription request. |
|
Transcription |
setMaxSpeakers(Integer maxSpeakers)
Set the max |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
TranscriptionDiarizationOptions
public TranscriptionDiarizationOptions(boolean enabled)
Creates an instance of TranscriptionDiarizationOptions class.
Parameters:
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: whether speaker diarization is enabled for this transcription request. The value is supplied via the constructor; the client does not auto-enable diarization 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: