Providing Visual Feedback
Providing users with an indication when the microphone is active is an important part of creating a user-friendly App Voice Experience.
The simplest way to do this is to show some text when the microphone is active.
To show when the microphone is active
In the Unreal editor, go to User Interface > Widget Blueprint.
Name the Blueprint, for example, UI_VoiceSDK.
Open the Blueprint and drag a text and a button object from the Palette Panel to add them to the UI.
Select the text, and then name it Result_Text.
In the Detail panel, select Is Variable.
In the Graph view, add an On Clicked event listener.
Change Result_Text to show Activate button clicked.
Call Blueprint methods to show the transcription in the UI.
Change the Activate button to activate voice input.
Add callbacks to OnStartVoiceInput, OnStopVoiceInput and change the text widget to show the current status.
On the map, go to Blueprints and open Level Blueprint.
Place the UI widget at the beginning of the game