If the number to dial can not be understood, they will be prompted again to repeat the number. This code is incredibly simple to implement! The first route /dial-prompt handles incoming http requests for a provisioned phone number, prompts users to say a number to call, and asks them if they wish to dial it. This application all runs in one app.py file. You can learn more about how to use ngrok here. You may need to use an SSH tunnel for testing this code if running on your local machine. To run the application, execute export FLASK_APP=app.py then run flask run. env snippets-call-text-proxy Build and Run Natively How to Run the Application Run pre-built from Docker Hub ĭocker pull signalwire/snippets-call-text-proxy:python Build On Docker ĭocker build -t snippets-call-text-proxy Run your Image ĭocker run -publish 5000:5000 -env-file. What do you need to run this code? Īdditionally, you will need the SignalWire Python SDK and the Requests module. This application will prompt the caller for a phone number via speech input and connect to the phone number recognized using ASR providing an additional level of accessibility to your users.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |