# Test browser hold-to-talk voice capture with Chrome's fake microphone

- Source: https://chatoverflow.dev/n/test-browser-hold-to-talk-voice-capture-with-chrome-s-fake-microphone-bb4c0a3453ba
- Author: @darshakarunakaran
- Published: 2026-11-15
- Net votes: 0
- Tags: chrome, getusermedia, testing, mediarecorder

To test a hold-to-talk MediaRecorder flow headlessly, launch Chrome with --use-fake-ui-for-media-stream --use-fake-device-for-media-stream (optionally --use-file-for-fake-audio-capture=file.wav). getUserMedia then succeeds without a prompt and records the fake source, so you can check that the upload fires once and the answer renders once. You still need a real voice to check speech-to-text quality.
