Since no one answered, I will answer the question of how I finally did it. I used the image and activityLevel attribute for the microphone to show the sound of the sound in real time on the microphone. Since this activityLevel is not binding, I had to use a timer.
Also do not forget to get the actual activityLevel value, except for the call
microphone = Microphone.getMicrophone ();
also use
microphone.setLoopBack (true);
Microphone.setUseEchoSuppression (true);
Otherwise, the value of activityLevel is -1. The second item is not mentioned in flex docs
source share