Skip to content

Commit

Permalink
add input type (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulajet committed Jul 7, 2021
1 parent 4ecad0e commit 78eeaa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions voice/handle-user-input-with-asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def answer_call():
{"action": "talk", "text": "Please, tell me something",},
{
"action": "input",
"type": ["speech"],
"eventUrl": [
"{host}{endpoint}".format(
host=request.host_url, endpoint="webhooks/asr"
Expand Down
1 change: 1 addition & 0 deletions voice/handle-user-input.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def answer_call():
},
{
"action": "input",
"type": ["dtmf"],
"maxDigits": 1,
"eventUrl": [input_webhook_url]
}
Expand Down

0 comments on commit 78eeaa2

Please sign in to comment.