diff --git a/src/utils/transcribeAWS.js b/src/utils/transcribeAWS.js index 8ce550e..66f27bd 100644 --- a/src/utils/transcribeAWS.js +++ b/src/utils/transcribeAWS.js @@ -19,7 +19,7 @@ const { spawn } = require('child_process'); -const CHUNK_SIZE = 32768; // 32 KB per audio chunk +const CHUNK_SIZE = 8192; // 8 KB per audio chunk (AWS limit ~32KB per event frame) // Convert any browser audio (WebM, OGG, etc.) to raw PCM s16le 16kHz mono // using ffmpeg. Returns a Buffer of raw PCM bytes.