Sha256: f8deb28a62f54da1b4414856535c14e657d5ad96513475df69db1793d69c0d3c

Contents?: true

Size: 915 Bytes

Versions: 7

Compression:

Stored size: 915 Bytes

Contents

module AdhearsionASR
  class Plugin < Adhearsion::Plugin
    config :adhearsion_asr do
      auto_include true, transform: Proc.new { |v| v == 'true' }, desc: "Enable or disable auto inclusion of overridden Adhearsion Core methods in all call controllers."
      min_confidence 0.5, desc: 'The default minimum confidence level used for all recognizer invocations.', transform: Proc.new { |v| v.to_f }
      timeout 5, desc: 'The default timeout (in seconds) used for all recognizer invocations.', transform: Proc.new { |v| v.to_i }
      recognizer nil, desc: 'The default recognizer used for all input. Set nil to use platform default.'
      input_language 'en-US', desc: 'The default language set on generated grammars. Set nil to use platform default.'
    end

    init do
      if config[:auto_include]
        ::Adhearsion::CallController.mixin ::AdhearsionASR::ControllerMethods
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
adhearsion-asr-1.3.0 lib/adhearsion-asr/plugin.rb
adhearsion-asr-1.2.0 lib/adhearsion-asr/plugin.rb
adhearsion-asr-1.1.1 lib/adhearsion-asr/plugin.rb
adhearsion-asr-1.1.0 lib/adhearsion-asr/plugin.rb
adhearsion-asr-1.0.1 lib/adhearsion-asr/plugin.rb
adhearsion-asr-1.0.0 lib/adhearsion-asr/plugin.rb
adhearsion-asr-1.0.0.beta1 lib/adhearsion-asr/plugin.rb