Thank you for your reply. I tried these profiles but I faced some errors:
Warning: Failed to init media recorder
and
Record Audio: unsupported audio source
Is there anything what I can do for that?
Sorry, it sounds like Tasker can't do it directly for your device. If it works for you with cm13, then yeah...I would use input tap or AutoInput.
Sent from my S6 Edge+ g928c
BobCatRom