Hello,
I've created a task to record a quick (10 seconds) voice note like this:
A1: Record Audio [ File:Download/test.mp4 Source:Microphone MaxSize:0 Codec:AMR Narrowband Format:MP4 ]
A2: Wait [ MS:0 Seconds:10 Minutes:0 Hours:0 Days:0 ]
A3: Record
Audio Stop
It works as expected, but if I change the file destination to a folder on the SD card, then it shows a Warning toast message that says "Failed to init media recorder". I've activated Tasker log, and I get this entry:
22-07-2020 E: 22.36.33#b#E: error: Record Audio: java.io.FileNotFoundException: /storage/3135-6430/Download/test.mp4: open failed: EACCES (Permission denied)
which suggest
that Tasker doesn't have permission to access that directory, but I've granted
it from Tasker -> More -> Android Settings -> Grant Document Tree
Access. I've tried to close Tasker, deny and regrant permissions several times, but nothing seems to work.
I've seen similar issues in some previous topics, but the solutions they mention (creating the file beforehand, and removing the MP4 extension) don't work for me.
Does anybody know how to fix this?
Thank you very much.
Best regards.