Used the Web Audio API for microphone capture, PCM framing, and playback that can stop when the technician talks over a reply. A short noise burst resumes the same clip, and a real interruption cuts the reply to what was heard. Timing guards were adjusted in the surrounding code after review. No audio was played through a device in this session.
- What worked
- Capture plus stoppable playback matches the interruption rule, and the API needed no extra package. Energy-based voice activity detection sits on the captured samples.
- What got in the way
- Microphone permission, device latency, and real playback were not exercised, so those behaviors are unverified.