TranscriptionOptions Class
- java.
lang. Object - com.
azure. ai. speech. transcription. models. TranscriptionOptions
- com.
Implements
public final class TranscriptionOptions
implements JsonSerializable<TranscriptionOptions>
Metadata for a transcription request.
Constructor Summary
| Constructor | Description |
|---|---|
| TranscriptionOptions(AudioFileDetails fileDetails) |
Creates an instance of Transcription |
| TranscriptionOptions(String audioUrl) |
Creates an instance of Transcription |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Transcription |
fromJson(JsonReader jsonReader)
Reads an instance of Transcription |
| List<Integer> |
getActiveChannels()
Get the active |
| String |
getAudioUrl()
Get the audio |
|
Transcription |
getDiarizationOptions()
Get the diarization |
|
Enhanced |
getEnhancedModeOptions()
Get the enhanced |
|
Audio |
getFileDetails()
Get the audio |
| Map<String,String> |
getLocaleModelMapping()
Get the locale |
| List<String> |
getLocales()
Get the locales property: A list of possible locales for the transcription. |
|
Phrase |
getPhraseListOptions()
Get the phrase |
|
Profanity |
getProfanityFilterMode()
Get the profanity |
|
Transcription |
setActiveChannels(List<Integer> activeChannels)
Set the active |
|
Transcription |
setDiarizationOptions(TranscriptionDiarizationOptions diarizationOptions)
Set the diarization |
|
Transcription |
setEnhancedModeOptions(EnhancedModeOptions enhancedModeOptions)
Set the enhanced |
|
Transcription |
setLocaleModelMapping(Map<String,String> localeModelMapping)
Set the locale |
|
Transcription |
setLocales(List<String> locales)
Set the locales property: A list of possible locales for the transcription. |
|
Transcription |
setPhraseListOptions(PhraseListOptions phraseListOptions)
Set the phrase |
|
Transcription |
setProfanityFilterMode(ProfanityFilterMode profanityFilterMode)
Set the profanity |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
TranscriptionOptions
public TranscriptionOptions(AudioFileDetails fileDetails)
Creates an instance of TranscriptionOptions class with audio file details.
Parameters:
TranscriptionOptions
public TranscriptionOptions(String audioUrl)
Creates an instance of TranscriptionOptions class with audio URL.
Parameters:
Method Details
fromJson
public static TranscriptionOptions fromJson(JsonReader jsonReader)
Reads an instance of TranscriptionOptions from the JsonReader.
Parameters:
Returns:
Throws:
getActiveChannels
public List<Integer> getActiveChannels()
Get the activeChannels property: The 0-based indices of the channels to be transcribed separately. If not specified, multiple channels are merged and transcribed jointly. Only up to two channels are supported.
Returns:
getAudioUrl
public String getAudioUrl()
Get the audioUrl property: The URL of the audio to be transcribed. The audio must be shorter than 2 hours in audio duration and smaller than 250 MB in size. If both Audio and AudioUrl are provided, Audio is used.
Returns:
getDiarizationOptions
public TranscriptionDiarizationOptions getDiarizationOptions()
Get the diarizationOptions property: Mode of diarization.
Returns:
getEnhancedModeOptions
public EnhancedModeOptions getEnhancedModeOptions()
Get the enhancedModeOptions property: Enhanced mode properties.
Returns:
getFileDetails
public AudioFileDetails getFileDetails()
Get the audioFileDetails property: The audio file details for transcription.
Returns:
getLocaleModelMapping
public Map<String,String> getLocaleModelMapping()
Get the localeModelMapping property: Maps some or all candidate locales to a model URI to be used for transcription. If no mapping is given, the default model for the locale is used.
Returns:
getLocales
public List<String> getLocales()
Get the locales property: A list of possible locales for the transcription. If not specified, the locale of the speech in the audio is detected automatically from all supported locales.
Returns:
getPhraseListOptions
public PhraseListOptions getPhraseListOptions()
Get the phraseListOptions property: Phrase list properties.
Returns:
getProfanityFilterMode
public ProfanityFilterMode getProfanityFilterMode()
Get the profanityFilterMode property: Mode of profanity filtering.
Returns:
setActiveChannels
public TranscriptionOptions setActiveChannels(List<Integer> activeChannels)
Set the activeChannels property: The 0-based indices of the channels to be transcribed separately. If not specified, multiple channels are merged and transcribed jointly. Only up to two channels are supported.
Parameters:
Returns:
setDiarizationOptions
public TranscriptionOptions setDiarizationOptions(TranscriptionDiarizationOptions diarizationOptions)
Set the diarizationOptions property: Mode of diarization.
Parameters:
Returns:
setEnhancedModeOptions
public TranscriptionOptions setEnhancedModeOptions(EnhancedModeOptions enhancedModeOptions)
Set the enhancedModeOptions property: Enhanced mode properties.
Parameters:
Returns:
setLocaleModelMapping
public TranscriptionOptions setLocaleModelMapping(Map<String,String> localeModelMapping)
Set the localeModelMapping property: Maps some or all candidate locales to a model URI to be used for transcription. If no mapping is given, the default model for the locale is used.
Parameters:
Returns:
setLocales
public TranscriptionOptions setLocales(List<String> locales)
Set the locales property: A list of possible locales for the transcription. If not specified, the locale of the speech in the audio is detected automatically from all supported locales.
Parameters:
Returns:
setPhraseListOptions
public TranscriptionOptions setPhraseListOptions(PhraseListOptions phraseListOptions)
Set the phraseListOptions property: Phrase list properties.
Parameters:
Returns:
setProfanityFilterMode
public TranscriptionOptions setProfanityFilterMode(ProfanityFilterMode profanityFilterMode)
Set the profanityFilterMode property: Mode of profanity filtering.
Parameters:
Returns: