Save audio to a file

It would be nice to record what is emitted and listen at the same time.
Senario;
I am listening an audiobook which is created on demand by google tts service from pdf.
If it is done by mobile phone I would like to record it by transmitting to pc for record it.
If it is done by pc I want to listen and record

Soundwire has record possibility I am using it.
I want to use this amazing app.