Thankyou, this works! however the audio is really choppy! have you got any ideas to fix this?
my flow is attached
[{"id":"1a1e0044.8a069","type":"ui_audio","z":"a96ef2d9.1d179","name":"","group":"a29ae445.1c44c8","voice":"","always":true,"x":820,"y":60,"wires":[]},{"id":"93930129.3b614","type":"sox-record","z":"a96ef2d9.1d179","name":"","buttonStart":"msg","inputs":1,"inputSource":"2,0","byteOrder":"-L","encoding":"signed-integer","channels":"2","rate":16000,"bits":16,"gain":"0","lowpass":8000,"showDuration":false,"durationType":"forever","durationLength":0,"silenceDetection":"nothing","silenceDuration":"2.0","silenceThreshold":"2.0","outputFormat":"stream","manualPath":"","debugOutput":false,"x":470,"y":60,"wires":[["55c39df.09d1964"],[]]},{"id":"ec08b42f.b38208","type":"ui_switch","z":"a96ef2d9.1d179","name":"","label":"Web Audio","tooltip":"","group":"a29ae445.1c44c8","order":4,"width":3,"height":1,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"start","onvalueType":"str","onicon":"","oncolor":"","offvalue":"stop","offvalueType":"str","officon":"","offcolor":"","x":310,"y":60,"wires":[["93930129.3b614"]]},{"id":"3a439393.82dfcc","type":"inject","z":"a96ef2d9.1d179","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"start","payloadType":"str","x":170,"y":40,"wires":[["ec08b42f.b38208"]]},{"id":"9b883a6d.b0f358","type":"inject","z":"a96ef2d9.1d179","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"stop","payloadType":"str","x":170,"y":80,"wires":[["ec08b42f.b38208"]]},{"id":"55c39df.09d1964","type":"wav-headers","z":"a96ef2d9.1d179","name":"","action":"add","channels":"2","samplerate":"16000","bitwidth":16,"x":650,"y":60,"wires":[["1a1e0044.8a069"],[]]},{"id":"a29ae445.1c44c8","type":"ui_group","name":"Radio Controls","tab":"701681b5.a061b8","order":2,"disp":true,"width":6,"collapse":true},{"id":"701681b5.a061b8","type":"ui_tab","name":"Ship Spy","icon":"fa-ship","disabled":false,"hidden":true}]