Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
for h5 root url redirect to index (#898)
zhaomingworkbf6947bcb2e1
diff --git a/funasr/runtime/html5/h5Server.py b/funasr/runtime/html5/h5Server.pyindex d0ecf27fd..96392f800 100644--- a/funasr/runtime/html5/h5Server.py+++ b/funasr/runtime/html5/h5Server.py@@ -6,7 +6,7 @@### 2022-2023 by zhaoming,mali aihealthx.com-from flask import Flask,render_template,request,send_from_directory,jsonify+from flask import Flask,render_template,request,send_from_directory,jsonify,redirect,url_for#from gevent.pywsgi import WSGIServerimport datetime@@ -20,7 +20,7 @@ app = Flask(__name__,static_folder='static',static_url_path="/static")@app.route('/')def homePage():- return render_template('recorderapp_test.html')+ return redirect('/static/index.html')parser = argparse.ArgumentParser()@@ -62,4 +62,4 @@ if __name__ == '__main__':#flaskprint("srv run on ",port)- app.run(debug=True,host=args.host,port=port, ssl_context=(args.certfile,args.keyfile))+ app.run(debug=False,threaded=True,host=args.host,port=port, ssl_context=(args.certfile,args.keyfile))