Voice testing

This commit is contained in:
2026-01-05 21:43:05 +01:00
parent 148602f7d9
commit 07dbac50c8
6 changed files with 120 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
class MicProcessor extends AudioWorkletProcessor {
process(inputs) {
const input = inputs[0];
if (input.length > 0) {
const channelData = input[0]; // Float32Array
this.port.postMessage(channelData);
}
return true;
}
}
registerProcessor("mic-processor", MicProcessor);