PhraseListOptions Class
- java.
lang. Object - com.
azure. ai. speech. transcription. models. PhraseListOptions
- com.
Implements
public final class PhraseListOptions
implements JsonSerializable<PhraseListOptions>
Phrase list properties for transcription.
Constructor Summary
| Constructor | Description |
|---|---|
| PhraseListOptions() |
Creates an instance of Phrase |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Phrase |
fromJson(JsonReader jsonReader)
Reads an instance of Phrase |
| Double |
getBiasingWeight()
Get the biasing |
| List<String> |
getPhrases()
Get the phrases property: List of phrases for recognition. |
|
Phrase |
setBiasingWeight(Double biasingWeight)
Set the biasing |
|
Phrase |
setPhrases(List<String> phrases)
Set the phrases property: List of phrases for recognition. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
PhraseListOptions
public PhraseListOptions()
Creates an instance of PhraseListOptions class.
Method Details
fromJson
public static PhraseListOptions fromJson(JsonReader jsonReader)
Reads an instance of PhraseListOptions from the JsonReader.
Parameters:
Returns:
Throws:
getBiasingWeight
public Double getBiasingWeight()
Get the biasingWeight property: Biasing weight for phrase list (0.0-2.0).
Returns:
getPhrases
public List<String> getPhrases()
Get the phrases property: List of phrases for recognition.
Returns:
setBiasingWeight
public PhraseListOptions setBiasingWeight(Double biasingWeight)
Set the biasingWeight property: Biasing weight for phrase list (0.0-2.0).
Parameters:
Returns:
setPhrases
public PhraseListOptions setPhrases(List<String> phrases)
Set the phrases property: List of phrases for recognition.
Parameters:
Returns: