talk.wasm : add audio pre-processing + bump memory

This commit is contained in:
Georgi Gerganov
2022-11-24 00:34:00 +02:00
parent be3b720f96
commit 37422ed733
4 changed files with 11 additions and 5 deletions

View File

@@ -504,7 +504,13 @@
function startRecording() {
if (!context) {
context = new AudioContext({sampleRate: 16000, noiseSuppression: true});
context = new AudioContext({
sampleRate: 16000,
channelCount: 1,
echoCancellation: true,
autoGainControl: true,
noiseSuppression: true,
});
}
Module.set_status("");