INPUT
Recording (input) stream -- audio flows from the audio device (microphone, line-in, etc.) to the application.
In AudioStreamCallback.onAudioReady, the buffer already contains captured audio samples for the application to consume. Alternatively, use AudioStream.read to pull data outside of a callback.
Note: On both Android and iOS, recording requires microphone permission. A PermissionException will be thrown if the permission has not been granted.