next-playground commited on
Commit
cc5d47e
1 Parent(s): 5e08dde

Update flask_api_full_song.py

Browse files
Files changed (1) hide show
  1. flask_api_full_song.py +1 -1
flask_api_full_song.py CHANGED
@@ -88,7 +88,7 @@ def wav2wav():
88
  tran = int(float(request.args.get("tran", 0))) # 音调
89
  spk = request.args.get("spk", 0) # 说话人(id或者name都可以,具体看你的config)
90
  wav_format = request.args.get("wav_format", 'wav') # 范围文件格式
91
- threading.Thread(target=infer, args=(audio_path, tran, spk, wav_format)).start()
92
  return jsonify({"task_id": task_id}), 202
93
 
94
  @app.route('/api/tasks/<task_id>', methods=['GET'])
 
88
  tran = int(float(request.args.get("tran", 0))) # 音调
89
  spk = request.args.get("spk", 0) # 说话人(id或者name都可以,具体看你的config)
90
  wav_format = request.args.get("wav_format", 'wav') # 范围文件格式
91
+ threading.Thread(target=infer, args=(audio_path, tran, spk, wav_format, task_id)).start()
92
  return jsonify({"task_id": task_id}), 202
93
 
94
  @app.route('/api/tasks/<task_id>', methods=['GET'])