SoundRecorderUI and SoundPlayerUI widgets will automatically search for and attach to the nearest RecorderPlaybackController above them in the widget tree.
Due to the automated nature of the linkage you need to be careful where you place a RecorderPlaybackController in your widget tree to avoid unintentional connections. Keep the RecorderPlaybackController as close to the other two widgets as possible.
The RecorderPlaybackController MUST be above SoundPlayerUI and the SoundRecorderUI widgets in the Widget tree.
This example is from the example app. It demonstrates how to create a Recorder SoundRecorderUI linked to a SoundPlayerUI.
The example demonstrates how to build a UI which allows a user to record audio and then immediately play it back.
The example also uses requestPermissions to display an explanatory dialog to the user before the OS displays its standard permission dialog.