The attached cct should work. There will be a small (~330ms) delay before switch on or off. If this is a problem, and if you can guarantee that the record input will only change state slowly (> 150ms before changing), then R2 may be reduced and the delay will reduce accordingly. Otherwise, just leave as is.
The output relay could be replaced by an optofet (with current-limiting resistor) if you need to reduce space consumption. If you can only find relays, often the reed-relays are very small.