Thanks for the prompt reply.
However I got it working, so the problem is solved. This was the issue: I put the filename {TXT:SPEAKTIME}.wav in the text box of the file browser, but since that file doesn't exist in the shown directory, it says 'file name invalid'. If I just put it in the text box under 'Save the captured audio' checkbox it works.