更语音静态资源
This commit is contained in:
parent
e670138ea7
commit
23d09c8e51
@ -82,6 +82,7 @@ console.log(text,'11111')
|
|||||||
voice.start();
|
voice.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function addcloEvenPassthrough() {
|
function addcloEvenPassthrough() {
|
||||||
window.closeEvent = function(info) {
|
window.closeEvent = function(info) {
|
||||||
console.log('2222')
|
console.log('2222')
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let transAudioData = {
|
let transAudioData = {
|
||||||
transcode(audioData) {
|
transcode(audioData) {
|
||||||
|
|
||||||
let output = transAudioData.to16kHz(audioData)
|
let output = transAudioData.to16kHz(audioData)
|
||||||
output = transAudioData.to16BitPCM(output)
|
output = transAudioData.to16BitPCM(output)
|
||||||
output = Array.from(new Uint8Array(output.buffer))
|
output = Array.from(new Uint8Array(output.buffer))
|
||||||
@ -41,5 +42,7 @@
|
|||||||
}
|
}
|
||||||
return dataView
|
return dataView
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})();
|
})();
|
@ -266,7 +266,7 @@
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
console.log(this.audioData)
|
|
||||||
// 中间帧
|
// 中间帧
|
||||||
this.webSocket.send(
|
this.webSocket.send(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user