When a single command, the result is correct, the loop is wrong. I made the last tasker xml the last one to "dumpsysy audio" results are correct. Loop as if the next number of characters to obtain less or empty, the result will be on a result.
Edit: other adb app (remote ADB shell) in the LOS...