aboutsummaryrefslogtreecommitdiff
path: root/transcribe_call.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-10-13 19:57:14 -0600
committerGitHub <noreply@github.com>2023-10-13 19:57:14 -0600
commit413675d42e4480eeab76d326bd2f706191e836c5 (patch)
treebc3aa43c748e212f074bc82fa3621a7fbdec13a0 /transcribe_call.py
parent2c670084b3ea2628e9b4d874f3b858e7945ed737 (diff)
parentb919f2dcabc8dcba41f7e309b2d4eccd8cc0d87e (diff)
Merge pull request #1 from navanchauhan/deepgram-stt
ooga chaga
Diffstat (limited to 'transcribe_call.py')
-rw-r--r--transcribe_call.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/transcribe_call.py b/transcribe_call.py
new file mode 100644
index 0000000..fb38171
--- /dev/null
+++ b/transcribe_call.py
@@ -0,0 +1,19 @@
+from dotenv import load_dotenv
+from flask import Flask
+from twilio.twiml.voice_response import VoiceResponse
+
+load_dotenv()
+
+
+
+
+app = Flask(__name__)
+
+@app.route("/answer", methods=['GET', 'POST'])
+def voice():
+ response = VoiceResponse()
+ response.say('Hello world, and thank you for your call from the Flask application.')
+ return str(response)
+
+if __name__ == "__main__":
+ app.run(debug=True, port=6789, host="0.0.0.0")