INNER CODE UNIT · Python

index

Kushal997-das/Project-Guidance · Artificial Intelligence/Basic/Audio to ISL Translator/app.py:14

def index():
    return render_template('home.html')


@app.route('/sentences', methods=['GET', 'POST'])
def api_message():
    f = open('./file.wav', 'wb')
    f.write(request.data)
    f.close()
    print('recording saved')
    global sentence
    sentence = speech_recognition.convert_speech_to_text()
    message = {'sentence': sentence}
    return jsonify(message)


@app.route('/ChangeSentenceFunction', methods=['GET', 'POST'])
def change_sentence():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…