sercrod

*audio-capture

*audio-capture turns an element into an explicit microphone recording action. It delegates to sercrod.audio_capture. Matching n-audio-capture forms are aliases.

<button type="button" *audio-capture.start>Start</button>
<button type="button" *audio-capture.pause>Pause</button>
<button type="button" *audio-capture.resume>Resume</button>
<button type="button" *audio-capture.stop *response="'recording'">Stop</button>
<button type="button" *audio-capture.cancel>Cancel</button>
<audio controls :src="recording.url"></audio>

The latest action result is written to $audio_capture, and stop results can be placed with *response. Native <audio> remains the playback and preview surface.