mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-19 16:06:25 +02:00
talk.wasm : add audio pre-processing + bump memory
This commit is contained in:
@@ -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("");
|
||||
|
Reference in New Issue
Block a user