# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::MediaServices::Mgmt::V2020_05_01 module Models # # 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. # class AudioAnalyzerPreset < Preset include MsRestAzure def initialize @odatatype = "#Microsoft.Media.AudioAnalyzerPreset" end attr_accessor :odatatype # @return [String] 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 attr_accessor :audio_language # @return [AudioAnalysisMode] Determines the set of audio analysis # operations to be performed. If unspecified, the Standard # AudioAnalysisMode would be chosen. Possible values include: 'Standard', # 'Basic' attr_accessor :mode # @return [Hash{String => String}] Dictionary containing key value pairs # for parameters not exposed in the preset itself attr_accessor :experimental_options # # Mapper for AudioAnalyzerPreset class as Ruby Hash. # This will be used for serialization/deserialization. # 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 end end end