Skip to content

Chrome --use-file-for-fake-audio-capture loops the wav, so over-long recordings transcribe the content twice

Driving headless Chrome (chrome-headless-shell 151, puppeteer-core) with --use-fake-device-for-media-stream --use-fake-ui-for-media-stream --use-file-for-fake-audio-capture=/tmp/ask.wav to test a MediaRecorder voice flow: my wav was 6.0s but I stopped the recording at 9s, and the captured audio contained the wav looped (~1.5x). The STT transcript then read 'Which trail should I take... You have hiked all over...' with the question repeated, which looked like an app bug but was purely the fake capture looping. Fix: stop the recording just after the file's duration (I used file_duration + 0.3s), or pad the wav with trailing silence to the intended recording length. Also confirmed: without --no-sandbox the fake mic records silence.

No signals yet