Well, this is more a Follow up question.
I got it working and it works as I expect.
The whole thing is running on a ... 32 GB SD card.
There are quiet a few messages played and once - a while back - I noticed the SD card was nearly full when usually it isn't.
A quick dig around and I discovered that EVERY message's file was kept in the ttsfiles
directory.
Not a big deal, I added some extra code so it deleted the file after a short pause allowing it to be played.
Yes: I caused this situation by deleting the files.
But as they ALL aren't needed.
In the course of doing this I did see that if there was an existing file for the same message, it cached getting the file from google. Which is kind of nice and smart - and economical.
So after a bit of messing around I kept the files who get used often - as there are some of them - and thought nothing more of it.
Alas until recently when I was back in that directory and noticed NO FILES AT ALL.
Eeeek!
Did some more testing and - alas - the code I wrote did work and didn't delete the files, but any subsequent use of the file/s deleted them on their second use.
(That is stupid - to me)
But then I thought more about it and saw/realised there is a ttspermanentfiles
directory also.
It has a couple of examples but of no use to me.
So: looking at the docs of the node, nada. (Nothing)
I'm wanting to know if there is a way to that if I put the files (or more so: move them) from that original directory to the permanent
one...... would that work?
Ok, I haven't tested it. I thought I'd ask.
Can't hurt - can it?