Sha256: 27f75500c03b0f37a29d08c4dccbf97065f457df869ef7a11fff43cd4b7bea2a
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
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 } inter_digit_timeout 2, desc: 'The timeout used between DTMF digits and to terminate partial invocations', transform: Proc.new { |v| v.to_i } sensitivity 0.5, desc: 'The sensitivity of speech recognition. Valid values between 0 and 1.', transform: Proc.new { |v| v.to_f } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adhearsion-asr-1.5.0 | lib/adhearsion-asr/plugin.rb |