Develop
Develop
Select your platform

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
  1. In the Unreal editor, go to User Interface > Widget Blueprint.
    "Widget Blueprint"
  2. Name the Blueprint, for example, UI_VoiceSDK.
    "Naming the Blueprint"
  3. Open the Blueprint and drag a text and a button object from the Palette Panel to add them to the UI.
    "Adding a button object to the UI"
  4. Select the text, and then name it Result_Text.
  5. In the Detail panel, select Is Variable.
    "The IsVariable option"
  6. In the Graph view, add an On Clicked event listener.
  7. Change Result_Text to show Activate button clicked.
  8. Call Blueprint methods to show the transcription in the UI.
  9. Change the Activate button to activate voice input.
    "Activating voice input"
  10. Add callbacks to OnStartVoiceInput, OnStopVoiceInput and change the text widget to show the current status.
    "Adding callbacks"
  11. On the map, go to Blueprints and open Level Blueprint.
    "Opening Level Blueprint"
  12. Place the UI widget at the beginning of the game
    "Placing UI widget at the beginning of the game."
Did you find this page helpful?