Class AudioAnalyzerPreset
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Preset
com.azure.resourcemanager.mediaservices.models.AudioAnalyzerPreset
- Direct Known Subclasses:
VideoAnalyzerPreset
The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription.
Currently, the preset supports processing of content with a single audio track.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the audioLanguage property: The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US').Get the experimentalOptions property: Dictionary containing key value pairs for parameters not exposed in the preset itself.mode()
Get the mode property: Determines the set of audio analysis operations to be performed.void
validate()
Validates the instance.withAudioLanguage
(String audioLanguage) Set the audioLanguage property: The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US').withExperimentalOptions
(Map<String, String> experimentalOptions) Set the experimentalOptions property: Dictionary containing key value pairs for parameters not exposed in the preset itself.withMode
(AudioAnalysisMode mode) Set the mode property: Determines the set of audio analysis operations to be performed.
-
Constructor Details
-
AudioAnalyzerPreset
public AudioAnalyzerPreset()Creates an instance of AudioAnalyzerPreset class.
-
-
Method Details
-
audioLanguage
Get the audioLanguage property: The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463.- Returns:
- the audioLanguage value.
-
withAudioLanguage
Set the audioLanguage property: The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463.- Parameters:
audioLanguage
- the audioLanguage value to set.- Returns:
- the AudioAnalyzerPreset object itself.
-
mode
Get the mode property: Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen.- Returns:
- the mode value.
-
withMode
Set the mode property: Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen.- Parameters:
mode
- the mode value to set.- Returns:
- the AudioAnalyzerPreset object itself.
-
experimentalOptions
Get the experimentalOptions property: Dictionary containing key value pairs for parameters not exposed in the preset itself.- Returns:
- the experimentalOptions value.
-
withExperimentalOptions
Set the experimentalOptions property: Dictionary containing key value pairs for parameters not exposed in the preset itself.- Parameters:
experimentalOptions
- the experimentalOptions value to set.- Returns:
- the AudioAnalyzerPreset object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classPreset
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-