Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::AudioAnalyzerPreset
- Inherits:
-
Preset
- Object
- Preset
- Azure::MediaServices::Mgmt::V2020_05_01::Models::AudioAnalyzerPreset
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb
Overview
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.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#audio_language ⇒ String
the BCP-47 format of ‘language tag-region’ (e.g: ‘en-US’).
-
#experimental_options ⇒ Hash{String => String}
for parameters not exposed in the preset itself.
-
#mode ⇒ AudioAnalysisMode
operations to be performed.
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AudioAnalyzerPreset class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ AudioAnalyzerPreset
constructor
A new instance of AudioAnalyzerPreset.
Constructor Details
#initialize ⇒ AudioAnalyzerPreset
Returns a new instance of AudioAnalyzerPreset.
18 19 20 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb', line 18 def initialize @odatatype = "#Microsoft.Media.AudioAnalyzerPreset" end |
Instance Attribute Details
#audio_language ⇒ String
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: go.microsoft.com/fwlink/?linkid=2109463
38 39 40 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb', line 38 def audio_language @audio_language end |
#experimental_options ⇒ Hash{String => String}
for parameters not exposed in the preset itself
48 49 50 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb', line 48 def end |
#mode ⇒ AudioAnalysisMode
operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen. Possible values include: ‘Standard’, ‘Basic’
44 45 46 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb', line 44 def mode @mode end |
#odatatype ⇒ Object
Returns the value of attribute odatatype.
22 23 24 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb', line 22 def odatatype @odatatype end |
Class Method Details
.mapper ⇒ Object
Mapper for AudioAnalyzerPreset class as Ruby Hash. This will be used for serialization/deserialization.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb', line 55 def self.mapper() { client_side_validation: true, required: false, serialized_name: '#Microsoft.Media.AudioAnalyzerPreset', type: { name: 'Composite', class_name: 'AudioAnalyzerPreset', model_properties: { odatatype: { client_side_validation: true, required: true, serialized_name: '@odata\\.type', type: { name: 'String' } }, audio_language: { client_side_validation: true, required: false, serialized_name: 'audioLanguage', type: { name: 'String' } }, mode: { client_side_validation: true, required: false, serialized_name: 'mode', type: { name: 'String' } }, experimental_options: { client_side_validation: true, required: false, serialized_name: 'experimentalOptions', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |