- 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
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.
private final String ACTION_TTS = "com.realwear.wearhf.intent.action.TTS";
private final String EXTRA_TEXT = "text_to_speak";
private String EXTRA_ID = "tts_id";
private final String EXTRA_PAUSE = "pause_speech_recognizer";
private final int TTS_REQUEST_CODE = 34;
private void textToSpeech() {
final String speech = "Welcome to the HMT-1 text to speech engine";
final Intent intent = new Intent(ACTION_TTS);
intent.putExtra(EXTRA_TEXT, speech);
intent.putExtra(EXTRA_ID, TTS_REQUEST_CODE);
intent.putExtra(EXTRA_PAUSE, false);
sendBroadcast(intent);
}