This commit is contained in:
yumoqing 2024-08-09 16:46:02 +08:00
parent 7f71284408
commit c9e0956498

View File

@ -62,7 +62,6 @@ bricks.VadText = class extends bricks.VBox {
async handle_audio(audio){
console.log('handle_audil() called', audio);
var wavBuffer = this.floatArrayToWAV(audio, sampleRate=16000);
var url =
var b64audio = this.arrayBufferToBase64(wavBuffer);
this.audio.set_url('data:audio/wav;base64,' + b64audio);
var hj = new bricks.HttpJson();