-
-
Save getadeo/9dd24b33c39935d5307d4a1aada41285 to your computer and use it in GitHub Desktop.
Revisions
-
Genesis Tadeo revised this gist
Aug 17, 2018 . 1 changed file with 1 addition and 1 deletion.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,4 +1,4 @@ call "9263262904", {:callerID => 'sip:21588734@sip.tropo.net'} ask "Who would you like to call? Just say Joe or John", { :choices => "Joe, John", :mode => "speech", -
Genesis Tadeo revised this gist
Aug 17, 2018 . 1 changed file with 1 addition and 1 deletion.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,4 +1,4 @@ call "9263262904", {:callerID => 'sip:[email protected]'} ask "Who would you like to call? Just say Joe or John", { :choices => "Joe, John", :mode => "speech", -
Genesis Tadeo revised this gist
May 16, 2018 . 1 changed file with 1 addition and 2 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,5 +1,4 @@ call "9273953465", {:callerID => 'sip:[email protected]'} ask "Who would you like to call? Just say Joe or John", { :choices => "Joe, John", :mode => "speech", -
Genesis Tadeo revised this gist
May 16, 2018 . 1 changed file with 2 additions and 1 deletion.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,4 +1,5 @@ #call "9273953465", {:callerID => 'sip:[email protected]'} call "9273953465" ask "Who would you like to call? Just say Joe or John", { :choices => "Joe, John", :mode => "speech", -
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. -
Genesis Tadeo renamed this gist
May 16, 2018 . 1 changed file with 3 additions and 2 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,5 +1,6 @@ call "9273953465", {:callerID => 'sip:[email protected]'} ask "Who would you like to call? Just say Joe or John", { :choices => "Joe, John", :mode => "speech", :recognizer => "en-PH", :minConfidence => 0.6, -
radralph revised this gist
May 19, 2017 . 1 changed file with 1 addition and 1 deletion.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,4 +1,4 @@ ask "Who would you like to call? Just say Joe or Jane", { :choices => "Joe, Jane", :mode => "speech", :recognizer => "en-PH", -
radralph revised this gist
May 19, 2017 . 1 changed file with 1 addition and 1 deletion.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,5 +1,5 @@ ask "Who would you like to call? Just say John or Jane", { :choices => "Joe, Jane", :mode => "speech", :recognizer => "en-PH", :minConfidence => 0.6, -
radralph revised this gist
May 19, 2017 . 1 changed file with 2 additions and 1 deletion.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 @@ -7,4 +7,5 @@ :onBadChoice => lambda { |event| say "I'm sorry, I didn't understand what you said."}, :onTimeout => lambda { |event| say "I'm sorry, I didn't hear anything"}, :onHangup => lambda { |event| log "Caller disconnected"} } hangup -
radralph revised this gist
May 19, 2017 . 1 changed file with 1 addition and 0 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 @@ -2,6 +2,7 @@ :choices => "john, jane", :mode => "speech", :recognizer => "en-PH", :minConfidence => 0.6, :onChoice => lambda { |event| say "You said" + event.value}, :onBadChoice => lambda { |event| say "I'm sorry, I didn't understand what you said."}, :onTimeout => lambda { |event| say "I'm sorry, I didn't hear anything"}, -
radralph revised this gist
May 19, 2017 . 2 changed files with 9 additions and 12 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,12 +0,0 @@ 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,9 @@ ask "Who would you like to call? Just say John or Jane", { :choices => "john, jane", :mode => "speech", :recognizer => "en-PH", :onChoice => lambda { |event| say "You said" + event.value}, :onBadChoice => lambda { |event| say "I'm sorry, I didn't understand what you said."}, :onTimeout => lambda { |event| say "I'm sorry, I didn't hear anything"}, :onHangup => lambda { |event| log "Caller disconnected"} } -
radralph revised this gist
May 19, 2017 . 2 changed files with 12 additions and 11 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 @@ -0,0 +1,12 @@ var result = ask("Who would you like to call? Just say John or Jane", { choices:"john, jane", attempts:3, timeout:7, mode: "speech", recognizer: "en-PH", onChoice: function(event) { say("You said" + event.choice);}, onBadChoice: function(event) { say("I'm sorry, I didn't understand what you said.");}, onError:function(event) { log("There was an error");}, onHangup:function(event) { log("The user hungup");}, onTimeout:function(event) { say("I'm sorry, I didn't hear anything.");} }); 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 +0,0 @@ -
radralph revised this gist
May 19, 2017 . 1 changed file with 1 addition and 1 deletion.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 @@ -3,7 +3,7 @@ $result = ask("What's your favorite color? Choose from red, blue or green.", array( "choices" => "red, blue, green", "attempts" => 3, "recognizer" => "en-PH", "mode" => "speech" )); say("You chose" . $result->value); -
radralph revised this gist
May 19, 2017 . 1 changed file with 3 additions and 1 deletion.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 @@ -2,7 +2,9 @@ $result = ask("What's your favorite color? Choose from red, blue or green.", array( "choices" => "red, blue, green", "attempts" => 3, "recognizer" => "en-PH" "mode" => "speech" )); say("You chose" . $result->value); -
radralph revised this gist
May 18, 2017 . 2 changed files with 9 additions and 4 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,4 +0,0 @@ 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,9 @@ <?php $result = ask("What's your favorite color? Choose from red, blue or green.", array( "choices" => "red, blue, green", "attempts" => 3 )); say("You chose" . $result->value); ?> -
radralph revised this gist
May 18, 2017 . 1 changed file with 3 additions and 3 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,4 +1,4 @@ var result = ask("What's your favorite color? Choose from red, blue or green.", { choices: "red, blue, green", attempts: 3 }); -
radralph revised this gist
May 18, 2017 . 1 changed file with 4 additions and 20 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,20 +1,4 @@ var result = ask("What's your favorite color? Choose from red, blue or green.", { choices:"red, blue, green" }); say("You said " + result.value); -
radralph revised this gist
May 18, 2017 . 1 changed file with 1 addition and 2 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,5 +1,4 @@ var event = ask("Who would you like to call? Just say John or Jane", { attempts:3, timeout:7, choices:"john, jane", -
radralph created this gist
May 18, 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,21 @@ answer(); event=ask("Who would you like to call? Just say John or Jane", { attempts:3, timeout:7, choices:"john, jane", onChoice:function(event) { say("You said" + event.choice); }, onBadChoice: function(event) { say("I'm sorry, I didn't understand what you said."); }, onError:function(event) { log("There was an error"); }, onHangup:function(event) { log("The user hungup"); }, onTimeout:function(event) { say("I'm sorry, I didn't hear anything."); } });