如何在javascript中更改PCM播放中的音频播放速度?

时间:2018-12-19 20:44:38

标签: javascript audio pcm

我正在用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()

致谢

0 个答案:

没有答案