Table of Contents

Class TextInputFieldVoiceHandler

Sister-script to TextInputField which adds support for voice typing through Meta's Voice SDK.

public class TextInputFieldVoiceHandler : MonoBehaviour
Inheritance
System.Object
TextInputFieldVoiceHandler

Remarks

Requires a DictationService somewhere in the scene.

Fields

StartRecordingIcon

Optional, icon to set for ToggleButtonIcon while not recording the user's audio.

public Sprite StartRecordingIcon

Field Value

Sprite

StopRecordingIcon

Optional, icon to set for ToggleButtonIcon while recording the user's audio.

public Sprite StopRecordingIcon

Field Value

Sprite

ToggleButton

The button to toggle voice typing.

public Button ToggleButton

Field Value

Button

ToggleButtonIcon

Optional, the icon for ToggleButton that will be changed based on the current recording state.

public Image ToggleButtonIcon

Field Value

Image

Properties

IsRecording

Is the user currently voice typing?

public bool IsRecording { get; }

Property Value

bool

Methods

Start()

protected void Start()