我正在用javascript播放音频PCM流,并想调整播放速度?我该怎么办?
我相关的代码是:
import flask
from flask import request, jsonify #import jsonify
from collections import defaultdict
app = flask.Flask(__name__)
app.config["DEBUG"] = True
lis = [1, 2, 3, 4]
dict1 = defaultdict(list)
dict1.setdefault("key", []).append("Hello") #you do not need to setdefault if you're already using a defaultdict, but this does not raise any errors.
dict2 = {"a":"res"}
@app.route("/list/<string:index>")
def l(index):
return lis[index]
@app.route("/dictionary/<string:key>")
def d(key):
return jsonify(dict1[key]) #use it to handle dictionary
app.run()
致谢