aboutsummaryrefslogtreecommitdiff
path: root/transcribe_call.py
blob: fb381715c52d4e4045afef538d7c64bffd7d504e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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")