-
-
Save getadeo/4e29b8fd5e1ec7c36d23a067d4e65e67 to your computer and use it in GitHub Desktop.
Revisions
-
Genesis Tadeo renamed this gist
May 16, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
radralph revised this gist
Apr 26, 2017 . 1 changed file with 9 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,12 @@ wait(1500) say "Starting to test ASR..." result = ask "Please choose a color from red, blue or green.", { :choices => "red, blue, green", :recognizer => "en-PH", :timeout => 20, :bargein => true, :mode => "speech", :minConfidence => 0.6, :onChoice => lambda { |event| say "On Choice" }, @@ -16,12 +17,12 @@ say "we didn't receive your input" } } if result.value.eql? "red" say "you chose red" elsif result.value.eql? "blue" say "you chose blue" elsif result.value.eql? "green" say "you chose green" else say "ASR not working" end -
radralph renamed this gist
Apr 26, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
radralph created this gist
Mar 29, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ wait(1500) say "Starting to test ASR..." result = ask "Please choose a color from Red, Blue or Green.", { :choices => "Red, Blue, Green", :recognizer => "en-PH", :timeout => 20, :bargein => true, :mode => "speech", :onChoice => lambda { |event| say "On Choice" }, :onBadChoice => lambda { |event| say "On Bad Choice" }, :onTimeout => lambda { |event| say "we didn't receive your input" } } if result.value.eql? "Red" say "you chose Red" elsif result.value.eql? "Blue" say "you chose Blue" elsif result.value.eql? "Green" say "you chose Green" else say "ASR not working" end say "goodbye" hangup