adhearsion-asr 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10b4c378b6fbc550f7d36f9ab5e0ea0cecd4ec60
4
- data.tar.gz: 1ce64eaa9708e12f12125eb61dffe121f3d30e07
3
+ metadata.gz: e91f474e7c4062e5f52a7f23f28870218bfb53d8
4
+ data.tar.gz: aa47a3843613e6a11da8f6da0ebdffdb67aca8cb
5
5
  SHA512:
6
- metadata.gz: 7114b62fe3145dc74cd001c9b7f16e00cc8b8c2415644560393b85f230520c3a78396af63e91cbecf0177fc23ecc486b2c1294efe90be4dbd1db3b6797d39788
7
- data.tar.gz: 46787dc004e45f9f089359d8d9db690cb6b53a8ab18edae9dca5438cfcdca5c5a601c52a1ff601ba1490b7f120be2a94c4020f4d5bcf3ed57ede1ec8b2546706
6
+ metadata.gz: b3a002ead7d72998c64b0cd879e53777eba1844ec34347dcd1225bbedcbce2067b971acf40cde0586ca7ed3cdcd0570c05295efb1ec32ee62d5fa25aded3cb69
7
+ data.tar.gz: e0fa8be3da2b112cade703992d46e51cfb45f37812d942b5a6e395c5bdbe93ec0093315b969eb55fa717c4c90af208bfa49f41ce2154498beab6c7d199ea3663
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/adhearsion-asr)
2
2
 
3
+ # [v1.5.0](https://github.com/adhearsion/adhearsion-asr/compare/1.4.0...1.5.0) - [2015-06-30](https://rubygems.org/gems/adhearsion-asr/versions/1.5.0)
4
+ * Feature: Allow setting recognition sensitivity via configuration
5
+
3
6
  # [v1.4.0](https://github.com/adhearsion/adhearsion-asr/compare/1.3.0...1.4.0) - [2015-06-15](https://rubygems.org/gems/adhearsion-asr/versions/1.4.0)
4
7
  * Feature: Added support for passing a custom render_document to #ask
5
8
  * Feature: Permit specifying a separate inter-digit timeout with a more useful default
@@ -5,6 +5,7 @@ module AdhearsionASR
5
5
  min_confidence 0.5, desc: 'The default minimum confidence level used for all recognizer invocations.', transform: Proc.new { |v| v.to_f }
6
6
  timeout 5, desc: 'The default timeout (in seconds) used for all recognizer invocations.', transform: Proc.new { |v| v.to_i }
7
7
  inter_digit_timeout 2, desc: 'The timeout used between DTMF digits and to terminate partial invocations', transform: Proc.new { |v| v.to_i }
8
+ sensitivity 0.5, desc: 'The sensitivity of speech recognition. Valid values between 0 and 1.', transform: Proc.new { |v| v.to_f }
8
9
  recognizer nil, desc: 'The default recognizer used for all input. Set nil to use platform default.'
9
10
  input_language 'en-US', desc: 'The default language set on generated grammars. Set nil to use platform default.'
10
11
  end
@@ -9,6 +9,7 @@ module AdhearsionASR
9
9
  inter_digit_timeout: timeout(options[:inter_digit_timeout] || Plugin.config.inter_digit_timeout),
10
10
  max_silence: timeout(options[:timeout] || Plugin.config.timeout),
11
11
  min_confidence: Plugin.config.min_confidence,
12
+ sensitivity: Plugin.config.sensitivity,
12
13
  grammars: grammars,
13
14
  recognizer: Plugin.config.recognizer,
14
15
  language: Plugin.config.input_language,
@@ -1,3 +1,3 @@
1
1
  module AdhearsionASR
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
@@ -64,6 +64,7 @@ module AdhearsionASR
64
64
  inter_digit_timeout: 2000,
65
65
  max_silence: 5000,
66
66
  min_confidence: 0.5,
67
+ sensitivity: 0.5,
67
68
  recognizer: nil,
68
69
  language: 'en-US',
69
70
  grammar: { value: expected_grxml }
@@ -382,6 +383,22 @@ module AdhearsionASR
382
383
  end
383
384
  end
384
385
 
386
+ context "with a different default sensitivity" do
387
+ let(:expected_grxml) { digit_limit_grammar }
388
+
389
+ before do
390
+ expected_input_options.merge! sensitivity: 0.8
391
+ end
392
+
393
+ temp_config_value :sensitivity, 0.8
394
+
395
+ it "executes a Prompt with correct sensitivity" do
396
+ expect_component_execution expected_prompt
397
+
398
+ subject.ask prompts, limit: 5
399
+ end
400
+ end
401
+
385
402
  context "with a different default recognizer" do
386
403
  let(:expected_grxml) { digit_limit_grammar }
387
404
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adhearsion-asr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Langfeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-15 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: adhearsion