Share via


EnhancedModeOptions Class

  • java.lang.Object
    • com.azure.ai.speech.transcription.models.EnhancedModeOptions

Implements

public final class EnhancedModeOptions
implements JsonSerializable<EnhancedModeOptions>

Enhanced mode properties for transcription.

Constructor Summary

Constructor Description
EnhancedModeOptions()

Creates an instance of EnhancedModeOptions class with enabled set to true.

Method Summary

Modifier and Type Method and Description
static EnhancedModeOptions fromJson(JsonReader jsonReader)

Reads an instance of EnhancedModeOptions from the JsonReader.

List<String> getPrompts()

Get the prompts property: A list of user prompts.

String getTargetLanguage()

Get the targetLanguage property: Target language for enhanced mode.

String getTask()

Get the task property: Task type for enhanced mode.

EnhancedModeOptions setPrompts(List<String> prompts)

Set the prompts property: A list of user prompts.

EnhancedModeOptions setTargetLanguage(String targetLanguage)

Set the targetLanguage property: Target language for enhanced mode.

EnhancedModeOptions setTask(String task)

Set the task property: Task type for enhanced mode.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

EnhancedModeOptions

public EnhancedModeOptions()

Creates an instance of EnhancedModeOptions class with enabled set to true.

Method Details

fromJson

public static EnhancedModeOptions fromJson(JsonReader jsonReader)

Reads an instance of EnhancedModeOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EnhancedModeOptions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the EnhancedModeOptions.

getPrompts

public List<String> getPrompts()

Get the prompts property: A list of user prompts.

Returns:

the prompts value.

getTargetLanguage

public String getTargetLanguage()

Get the targetLanguage property: Target language for enhanced mode.

Returns:

the targetLanguage value.

getTask

public String getTask()

Get the task property: Task type for enhanced mode.

Returns:

the task value.

setPrompts

public EnhancedModeOptions setPrompts(List<String> prompts)

Set the prompts property: A list of user prompts.

Parameters:

prompts - the prompts value to set.

Returns:

the EnhancedModeOptions object itself.

setTargetLanguage

public EnhancedModeOptions setTargetLanguage(String targetLanguage)

Set the targetLanguage property: Target language for enhanced mode.

Parameters:

targetLanguage - the targetLanguage value to set.

Returns:

the EnhancedModeOptions object itself.

setTask

public EnhancedModeOptions setTask(String task)

Set the task property: Task type for enhanced mode.

Parameters:

task - the task value to set.

Returns:

the EnhancedModeOptions object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to