Is there any way to record output?

Assuming you have a Raspberry Pi then you should have found this thread