Did you install sox as per the manual of the node sudo apt-get install sox
too? If yes than import this flow:
[{"id":"60716630.cb73b","type":"sox-record","z":"2a8d15bd.b2aeea","name":"","inputSource":"1,0","byteOrder":"-L","encoding":"signed-integer","channels":1,"rate":16000,"bits":16,"gain":"0","lowpass":8000,"showDuration":true,"durationType":"limited","durationLength":"6","silenceDetection":"something","silenceDuration":"1.5","silenceThreshold":"2.5","outputFormat":"wav","debugOutput":true,"x":270,"y":80,"wires":[["7fc73aa2.35d88c"],["cbc56be1.bd447"]]},{"id":"45e5db2c.dfd494","type":"inject","z":"2a8d15bd.b2aeea","name":"","topic":"","payload":"start","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":80,"wires":[["60716630.cb73b"]]},{"id":"7fc73aa2.35d88c","type":"sox-play","z":"2a8d15bd.b2aeea","name":"","outputDevice":"1,0","gain":"0","startNew":"start","debugOutput":true,"x":440,"y":80,"wires":[["ce69ce5f.982028"]]},{"id":"cbc56be1.bd447","type":"debug","z":"2a8d15bd.b2aeea","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":450,"y":140,"wires":[]},{"id":"ce69ce5f.982028","type":"debug","z":"2a8d15bd.b2aeea","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":610,"y":80,"wires":[]}]
Than choose the respeaker 2 mic pi hat in both nodes as input/output device and deploy the flow:
Plug your headphones into the respeaker hat.
Than press on the inject node to start the recording and say something. The node is configured to record for a maximum of 6 seconds or until it detects silence. Once it finished recording it will automatically play back that recording to you on the configured output.
You will see detailed recording and playback information in the debug window.