There is a bug in the AudioStreamSample object that has not been fixed for a long time !!!!
The AudioStreamSample does not allow recording on linux devices therefore also on android please if someone could repair it
If you read this, support this request so that the developers can repair it because it is a bug that has not been repaired for a long time.