- Knowledge Base
- Developer
- HMT Development Examples
-
Developer
-
RealWear Navigator™ 500 Series
- Overview
- Features and Specifications
- Wearing Your Device
- Device Setup
- Interacting with Your Device
- Device Power
- Battery Use
- Home Screen
- My Programs
- My Camera
- My Files
- My Training
- Safety
- Device Care
- Ownership Information
- User Guide
- FAQ
- Thermal Camera Module
- Display Technology Comparison
- Cleaning Your Device
-
RealWear Cloud
-
RealWear Releases
-
RealWear HMT-1®
-
RealWear HMT-1Z1®
-
RealWear Apps
-
Configure
-
RealWear Modules & Accessories
-
RealWear Navigator™ Series
Unity Development Example – Text To Speech
The HMT comes with a built-in text to speech engine that can relay text to the user by reading it out aloud. This allows for quick pieces of information to be given to the user without them having to view the screen.
void Start()
{
// Initialize the wearHF object
// NOTE: The plugin registers itself to the WearHF system in the
// GameObject’s Awake function, so any calls to the plugin need to occur
// after that. The start function is a good choice.
m_wearHF = GameObject.Find("WearHF Manager").GetComponent<WearHF>();
// Add a TTS command
m_wearHF.AddTTSCommand(1, "Welcome to the HMT-1 from RealWear. " +
"This is the Text to Speech Engine Example", TtsCallback);
}
/// <summary>
/// Called when TTS has finished playing.
/// </summary>
/// <param name="id">Unique identifier associated with the TTS command.</param>
public void TtsCallback(int id)
{
Debug.Log("TTS Event completed: " + id);
}