bugfix
This commit is contained in:
parent
7f71284408
commit
c9e0956498
@ -62,7 +62,6 @@ bricks.VadText = class extends bricks.VBox {
|
|||||||
async handle_audio(audio){
|
async handle_audio(audio){
|
||||||
console.log('handle_audil() called', audio);
|
console.log('handle_audil() called', audio);
|
||||||
var wavBuffer = this.floatArrayToWAV(audio, sampleRate=16000);
|
var wavBuffer = this.floatArrayToWAV(audio, sampleRate=16000);
|
||||||
var url =
|
|
||||||
var b64audio = this.arrayBufferToBase64(wavBuffer);
|
var b64audio = this.arrayBufferToBase64(wavBuffer);
|
||||||
this.audio.set_url('data:audio/wav;base64,' + b64audio);
|
this.audio.set_url('data:audio/wav;base64,' + b64audio);
|
||||||
var hj = new bricks.HttpJson();
|
var hj = new bricks.HttpJson();
|
||||||
|
Loading…
Reference in New Issue
Block a user